I am trying to upload files to storage via the REST API in javascript. But, it seems that when I “PUT” a file to storage, it does not properly handle multipart/form-data and saves the multipart/form-data boundaries as part of the document. This causes corruption of the file.
var formData = new FormData();
formData.append(file.name, file);
var uploadUrl = this.getSignedUrl(‘storage/file’, file.name, null);
Thanks for your inquiry. We’re sorry about that. We were adding examples for various platforms and so far we have added these examples for .NET, Java, PHP, Python, Android, Ruby. However, I’ve logged a task to provide you an example. This task has been logged under ticket id SUPPORT-1059 in our issue tracking system. Meanwhile, can you please clarify the source code about the method getSignedUrl? Because we don’t have such function in javascript. We’re sorry for the inconvenience.
Thanks for the information. We will notify you in this thread once it is resolved. Furthermore, you can ask about the update within the current forum thread. I’ve logged this information in our issue tracking system and we will get back to you soon.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.