OneupUploaderBundle icon indicating copy to clipboard operation
OneupUploaderBundle copied to clipboard

How to override _method in routing?

Open cve opened this issue 10 years ago • 1 comments

Hi,

I need to add also GET method for jquery file upload plugin, cause the same url is for retrieve and upload files, how can I do this? Is there any easy way or I need to rewrite RouteLoader class?

cve avatar Jul 10 '14 18:07 cve

Hi @cve

cause the same url is for retrieve and upload files..

I don't really understand the question. What do you mean by retrieve files? After an upload you should return the file in the Response, as far as I remember.

However, having the ability to chose which upload method to use would be a nice addition, as one might want to support PUT requests. I'll assign this to Milestone 2.

sheeep avatar Jul 18 '14 13:07 sheeep