Back

.mov file, File extension not allowed?

  • 0
  • Flutter
  • Apple
denizataes
18 Jun, 2024, 13:19

I have a file like that. When i update it to storage its fail. Can someone help please? {"name": "AtaTest", "size": 2844756, "type": "video/quicktime", "uri": "file:///Users/denizataes/Library/Developer/CoreSimulator/Devices/114450E6-D259-4034-B16D-D6AB24039C52/data/Containers/Data/Application/8C8156EC-4007-43D7-8254-0292D132E096/Library/Caches/ExponentExperienceData/@anonymous/daeapp-80cb5de5-d4e6-46e3-a291-fcd46581cfb5/ImagePicker/32910734-EE49-45A1-9A87-02781DC5AFB6.mov"}

TL;DR
The developer is experiencing issues uploading .mov files to storage using React Native. The filename parameter may need to include the extension. Make sure to pass an object where InputFile is expected. Check the documentation for updates and ensure the file extension matches the type specified.
darShan
18 Jun, 2024, 13:23

Whats the error?

darShan
18 Jun, 2024, 13:23

the extension is added as mov and the file also has the same extension, that should work.

denizataes
18 Jun, 2024, 13:28
denizataes
18 Jun, 2024, 13:29

is there a problem with .mov extension type files?

denizataes
18 Jun, 2024, 13:31
darShan
18 Jun, 2024, 13:33

not really, i just uploaded a file via console, it uploaded fine.

denizataes
18 Jun, 2024, 13:34

this error also comes .jpg files for me

darShan
18 Jun, 2024, 13:34

not sure if this is correct, let me check the docs.

denizataes
18 Jun, 2024, 13:35

asset = {"name": "AtaTest", "size": 2844756, "type": "video/quicktime", "uri": "file:///Users/denizataes/Library/Developer/CoreSimulator/Devices/114450E6-D259-4034-B16D-D6AB24039C52/data/Containers/Data/Application/8C8156EC-4007-43D7-8254-0292D132E096/Library/Caches/ExponentExperienceData/@anonymous/daeapp-80cb5de5-d4e6-46e3-a291-fcd46581cfb5/ImagePicker/1D48494B-ECE4-404F-8294-4DEB8F240BB9.mov"}

darShan
18 Jun, 2024, 13:35
darShan
18 Jun, 2024, 13:35

select Flutter to see the example.

darShan
18 Jun, 2024, 13:36

you seem to be adding an object where the InputFile is expected.

denizataes
18 Jun, 2024, 13:36
denizataes
18 Jun, 2024, 13:36

im coding with react native

denizataes
18 Jun, 2024, 13:37

i think its supposed to be object?

darShan
18 Jun, 2024, 13:37

ohh my bad. i thought this was flutter as you tagged flutter and apple.

denizataes
18 Jun, 2024, 13:38

I can't see the react native tag 😦

darShan
18 Jun, 2024, 13:43

i see that the params are correct for the file. there's a good chance the docs aren't updated for storage x react native.

i have no exp. on react native so just gonna have to wait until a react wizard joins in here.

denizataes
18 Jun, 2024, 13:44

ok, thank you 🙏🏻

Ryan
18 Jun, 2024, 13:46

I haven't used React Native in a few years but could the filename need to include the extension? It looks like the filename you're passing is undefined so it's falling back to the string you provide, which doesn't include any extension, not sure if that could be the issue?

denizataes
18 Jun, 2024, 13:49

thanks for the answer, I'll try it right away

denizataes
18 Jun, 2024, 13:49

yes 🙂 It's not working because of filename, thank you @Ryan

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more