Rank 2: Process
My code -
storage.createFile( BUCKET_ID, ID.unique(), file, [], (progress) => console.log(progress) );After executing this code, nothing gets printed in the console.
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 2: Process
My code -
storage.createFile( BUCKET_ID, ID.unique(), file, [], (progress) => console.log(progress) );After executing this code, nothing gets printed in the console.
can you show more code?
Rank 2: Process
const handleUploadFile = async () => { try { await storage.createFile( BUCKET_ID, ID.unique(), file, [], (progress) => console.log(progress) ); } catch (error) { console.log(error); } };Rank 2: Process
The file is uploaded to the bucket and just the progress callback is not working. Maybe it's not working with appwrite cloud and might work with locally hosted appwrite.
Admin
Btw, you can format multi line code using 3 back ticks. See https://www.markdownguide.org/extended-syntax/#syntax-highlighting
why don't you give this a try? if it works on localhost, we know that it's an issue with the cloud instance
Rank 2: Process
Okay, I will try the locally hosted version.
let me know! I'm here to help
Rank 2: Process
I tried storage API on the local appwrite install and the progress callback was not working.
Rank 2: Process
Idk, what to do next. I mean, the only code that is responsible for uploading is the handleUploadFile function and there is no problem with it.
just to be sure, you're using js right? I want to try and figure this out lol
Admin
Have you tried it out yourself? 😜
nope, but I'm planning to which is why I want to figure this out lol
Rank 2: Process
Yeah, I am using JavaScript
Rank 2: Process
@safwan Hey, any update?
Admin
FYI, multi-line code formats better with 3 back ticks. see https://www.markdownguide.org/extended-syntax/#syntax-highlighting
Admin
how big is your file?
Rank 2: Process
I tried uploading multiple files of different sizes like 800 KB, and 5 MB in Slow 3G network throttling mode.
ah I forgot about this mate 😅
I'll get to it now
Admin
So we chunk our uploads in 5MB increments. So to see the progress, you'd have to upload bigger than 5MB
Rank 2: Process
This doesn't help me. Images are usually less than 5 MB and with no visual progress indicator the client will go crazy.
Rank 2: Process
The upload progress should be visible for every file. Please add this feedback in your roadmap or any list that appwrite follows.
Rank 2: Process
No problem. I understand we do a lot of things every day. Anyway I got my answer.
Admin
You are welcome to create a feature request: https://github.com/appwrite/appwrite/issues/new/choose
Rank 2: Process
Okay, I will create the feature request.