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
* This method should return the presigned URL for the given key capable of upload (PUT multipart form data to it).
144
+
* This method should return the presigned URL for the given key capable of upload (adapter user will call PUT multipart form data to this URL within expiresIn seconds after link generation).
145
+
* By default file which will be uploaded on PUT should be marked for deletion. So if during 24h it is not marked for not deletion, it adapter should delete it forever.
145
146
* The PUT method should fail if the file already exists.
147
+
*
148
+
* Adapter user will always pass next parameters to the method:
146
149
* @param key - The key of the file to be uploaded e.g. "uploads/file.txt"
147
150
* @param expiresIn - The expiration time in seconds for the presigned URL
148
-
* @param contentType - The content type of the file to be uploaded
151
+
* @param contentType - The content type of the file to be uploaded, e.g. "image/png"
149
152
*
150
153
* @returns A promise that resolves to an object containing the upload URL and any extra parameters which should be sent with PUT multipart form data
* This method should return the URL for the given key capable of download (200 GET request with response or 200 HEAD request without response).
161
+
* This method should return the URL for the given key capable of download (200 GET request with response body or 200 HEAD request without response body).
159
162
* If adapter configured to use public storage, this method should return the public URL of the file.
160
163
* If adapter configured to use private storage, this method should return the presigned URL for the file.
0 commit comments