-
-
Notifications
You must be signed in to change notification settings - Fork 48
Description
I am facing an issue with the react-file-manager library, where the file upload process always uses the POST method, and there is no apparent way to modify the HTTP method or intercept the upload process to use PUT instead, which is required for uploading to Azure Blob Storage.
Steps to Reproduce:
-
Use the react-file-manager component with a configured fileUploadConfig that includes a valid URL.
-
The library always attempts to upload files using the POST method, even when a PUT request is necessary.
-
Trying to override the upload method by modifying the configuration does not work, as the library does not expose a way to customize or intercept the method used for uploading files.
-
Expected Behavior:
-
The library should allow users to modify the HTTP method used for uploads, allowing for the use of PUT for file uploads, which is required by services like Azure Blob Storage.
-
There should be a way to intercept or fully control the file upload process to customize it, including the HTTP method.
Actual Behavior:
- The POST method is always used for file uploads, and there is no clear way to change it or intercept the file upload process to use PUT.
- Suggested Solution:
- Provide an option to configure the HTTP method for file uploads, allowing users to choose PUT or other methods as needed.
- Expose a way to intercept or override the file upload process fully, allowing for more flexibility when dealing with external storage services like Azure Blob Storage.
Additional Information:
I tried using onFileUploading to manually handle the file upload process with PUT, but the library still defaults to sending a POST request in the background, which cannot be modified or intercepted.
It would be great if there was a way to fully disable the default POST request behavior and control the file upload logic.
Metadata
Metadata
Assignees
Labels
Projects
Status