Back

Problem uploading chunk file with restapi

  • 0
  • REST API
R2
19 Feb, 2024, 22:10

so when i try to upload chunked file with the restapi i get an error message of fileId is not optional. but according to the documentation Contains the file ID of the new file. Only used by file chunks following the first chunk uploaded. which i did used only for the first chunk. and i also tried putting the fileid field with similar id if that would work A storage file with the requested ID already exists which makes sense and i also tried adding unique() which is the id to fileid on both chunk but that created both chunk. which is not what i want or what should happen.

TL;DR
Developers are having trouble uploading a chunk file with a restapi SDK. They were advised to check what the SDKs are doing, specifically pointing to the web SDK's code. The issue seemed to be missing the file ID in the chunk form. The developer mentioned using Python, Dart, and JavaScript for directions. Additionally, there was confusion about breaking up a file into 5MB chunks with Postman.
Steven
20 Feb, 2024, 01:14

How are you going to break up your file to 5MB chunks with postman?

R2
20 Feb, 2024, 05:53

sorry. wrong image. i wanted to send the error message.

R2
20 Feb, 2024, 05:56

written in rust

Steven
20 Feb, 2024, 15:55

seems like you're missing the file id in the chunk form. have you looked at what our SDKs are doing? like the web SDK: https://github.com/appwrite/sdk-for-web/blob/ca8cb1d9f2c0393ec99c7d5cb50f3be543987918/src/services/storage.ts#L93

R2
20 Feb, 2024, 16:00

I am using your sdk (python,dart, JavaScript) for some directions. Maybe i missed something. I'll check it out again and give you a feedback.

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