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
Some web hosting providers are using nginx as primary web server. By default it rejects PUT requests. We can solve this problem by editing the configuration, but usually web hosting providers do not allow doing such things.
The text was updated successfully, but these errors were encountered:
The UploadFile function signature is pretty stuck on only using one HTTP method, and PUT seems to be the most appropriate for sending binary data. I also can't handle every webserver's quirks.
Wouldn't a web hosting provider allow at least some custom Nginx configuration, so you can create pretty URLs for example? Supposedly a try_files directive is enough to support PUT and DELETE on Nginx.
Currently, we're just require end-user use full URL in configuration file (include index.php). So, for us, this is not a big issue now.
But I don't see anything wrong with implementing an extra parameter for the UploadFile method, which allows POST method to be used instead of PUT.
Maybe just adding CURLOPT_POST force cURL upload file with POST method instead of PUT, i don't tested.
Some web hosting providers are using nginx as primary web server. By default it rejects PUT requests. We can solve this problem by editing the configuration, but usually web hosting providers do not allow doing such things.
The text was updated successfully, but these errors were encountered: