srs81 / CakePHP-AjaxMultiUpload

CakePHP 2 plugin to allow for easy multi-file upload with AJAX
Other
65 stars 32 forks source link

Ability to limit file upload #39

Open rajeshkw opened 11 years ago

rajeshkw commented 11 years ago

Is there any way to work around restricting number of file uploads in one time?

srs81 commented 11 years ago

There shouldn't really be a restriction - what sort of restriction are you seeing?

rajeshkw commented 11 years ago

In my case, my users upload images to a gallery of a particular event, im using this plugin for the functionality. Now there should not be unlimited uploads here, thats why i was looking for limiting number of files uploaded..eg. 10 images for one event likewise. Please help if any possilibility.

srs81 commented 11 years ago

I see. Can you limit that in the backend? Or do you want to restrict that in the front-end plugin?

rajeshkw commented 11 years ago

see there is drag and drop functionality you provided. It just starts uploading irrespective of number of files...it just supports unlimited uploads as just when one uploads a file it gets stored....hence i believe there has to be a limit from client side...please help...i would be happy if it can be done from either client or server side.

srs81 commented 10 years ago

Right, I see. You might need to edit the Javascript file that comes with this though ... are you able to do that?

rajeshkw commented 10 years ago

well yes...i managed that. thanks for your work.I appreciate from the core.

On Tue, Jan 14, 2014 at 2:25 AM, Suman notifications@github.com wrote:

Right, I see. You might need to edit the Javascript file that comes with this though ... are you able to do that?

— Reply to this email directly or view it on GitHubhttps://github.com/srs81/CakePHP-AjaxMultiUpload/issues/39#issuecomment-32210404 .

rodrigobert commented 10 years ago

I have the same problem, but in my case, the limit of image, depends of the place of my site. eg.: 10 images to the albuns 1 image to the profile

I'm lost...