Forge.file.info crashes app


#1

Hi,
Forge.file.info crashes my app if I pass wrong file object (with a wrong “uri” path in my case)
I think this situation should be handled by error callback.


#2

Thank you for the bug report Igor!

Can you please provide an example of the parameters you passed to forge.file.info() we can use to debug the cause?


#3

it was json like this:
{
“name”:“movieCompressed17.mov”,
“uri”:"/var/mobile/Containers/Data/Application/A031E5BB-FFF7-40E3-AC7C-6DFB14EB6625/Documents/movieCompressed17.mov"
“type”:“video”
}

maybe something else, but as far as I understand the only valuable field there - “uri”
and that path was wrong in my case - there was no file movieCompressed17.mov in that folder (but folder path is correct).


#4

Thank you muchly Igor!

If you update the version of the file module to 2.14 you’ll now get a sane “File not found” message in the error handler :slight_smile: