You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One additional thing that you would probably want to send with the payload is the `Content-Type` of the uploaded file. In the example, it is shown with a hardcoded value of `application/pdf`.
79
+
80
+
Usually, you would like to update this information dynamically in the front-end after user chooses the file. This typically requires a small amount of custom JavaScript, depending on your implementation.
81
+
82
+
It is possible to skip the `Content-Type`, but this will result in a default value of `application/octet-stream` being set.
83
+
84
+
85
+
77
86
3. S3: Return URL to file
78
87
After submitting such form, you will be redirected to an XML response (204 status code) with the URL to the file on the storage servers. Otherwise it will return status 4xx and the reason for the error in XML format.
79
88
@@ -119,6 +128,8 @@ query get_documents {
119
128
If you want your users to be able to upload images and automatically generate multiple versions of it (for example a thumbnail) you can achieve it by using the `versions` option of property upload.
120
129
Read more on how to [implement image upload with version processing using Direct S3 upload and Uppy](/developer-guide/user-uploads/uploading-files-directly-amazons3-using-uppy).
121
130
131
+
Additionaly, when `versions` option is set, it is possible to skip setting the `Content-Version` metadata as mentioned above. In this case, the system assumes the file is an image, and the image processing software will set it automatically.
132
+
122
133
## FAQ
123
134
124
135
1. platformOS is multi-cloud, does this mean implementation will be different for every cloud provider?
0 commit comments