FineUploader / server-examples

Server-side examples for the Fine Uploader library
https://fineuploader.com
MIT License
279 stars 204 forks source link

Delete Object Requires _GET? #37

Closed ajschmaltz closed 9 years ago

ajschmaltz commented 9 years ago

I wasn't able to access the bucket or key via POST params. I had to use GET.

function deleteObject() {
    getS3Client()->deleteObject(array(
        'Bucket' => $_GET['bucket'],
        'Key' => $_GET['key']
    ));
}
rnicholus commented 9 years ago

Sounds like an issue with your server code or environment. The bucket is sent as part if the POST body if you've elected to have Fine Uploader sent a POST request for delete file requests. By default, Fine Uploader sends a DELETE request though. In that case, the parameters will be part of the query string.