uploading audio file
Hi, im generating an uplaod url
and then using rnfetchblob ~ https://www.npmjs.com/package/rn-fetch-blob#user-content-upload-example--dropbox-files-upload-api
my files are uploading but the audiofile is not playable,.
I've tried quite a bit, is there any specific config i should be setting up on the generate url?
4 Replies
Hey, is the file playable if you download it from your dashboard (Deployment > File Storage) and play it on your computer?
Is it in the format you expect?
This problem sounds unrelated to Convex, and more likely something to do with encoding on the write side or the player on the read side. Convex should be storing whatever bits you give it.
You might also inspect the content type headers used to upload / download and see if those match what you expect for the format. The download url content type should match the upload
the file is not playable in the dashboard
it could be an issue on my end, it seems like its only uploading the path as a string as the size changes based on the string length
if i send the file as form data the type never sticks in the file storage
if i send it as an m4a it never plays
Definitely sounds like a problem with the upload code, mind sharing it?
If I manually upload an m4a file to the dashboard I can download it and play it again.