Media file path

Good Day all,
I've checked the forum and haven't found a answer that works. What is the file path for files uploaded to App Inventor?
I've tried this path: file:///mnt/sdcard/AppInventor/assets/ani.gif which I assume one would replace the ani.gif with the correct file name but didn't work (file not found). Also tried this one with same results: file:///android_asset/ani.gif
I'm just trying to show a moving .gif in a webviewer.
I have tried to use the .gif that's uploaded to google drive and while the picture shows correctly it does not move.
Any help is appreciated
Thanks in advance.

try http://localhost/ani.gif
Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.

Do I use the link as is or do I have to replace the ani with my file name?

Taifun, I replaced ani with my file name and it worked just fine.

Thanks for your help

Al

Hi Taifun,
What would the production path be?

it is the same path for development and production
http://localhost/yourFileName.gif
Taifun

The path works in development but not in production.

What path?
Which component?

Hi There,
I uploaded a gif to app inventor, I want to show it in my app with a webviewer, the path http://localhost/yourFileName.gif that Taifun gave me works fine in development but not in production I get error 404 file not found. Would you know what path to use?

Try this APK and check if it works on your device:

test3

Thank you all for the assistance, I deleted the .gif file changed the name to a simpler name, uploaded it again and it works in production and developement

What was the problematic name?

1 Like

I'm pretty sure it had nothing to do with the filename.

HandSignales.gif changed it to Signales.gif

'http://localhost/HandSignales.gif http://localhost/Signales.gif

Don't know that's what I did and it worked, beyond that I'm clueless.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.