Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some restrictions to files #4

Closed
2 of 3 tasks
maxxer opened this issue Feb 13, 2015 · 4 comments
Closed
2 of 3 tasks

Add some restrictions to files #4

maxxer opened this issue Feb 13, 2015 · 4 comments

Comments

@maxxer
Copy link
Contributor

maxxer commented Feb 13, 2015

It would be great to be able to add some restrictions to the files the user can upload, on a per model basis:

  • Limit the max number of files
  • Limit the mimetype/extension of files
  • Limit the max number of files per mimetype (maybe this is excessive)
@maxxer maxxer changed the title Add limits check Add some restrictions to files Feb 13, 2015
@CTOlet
Copy link
Owner

CTOlet commented Feb 13, 2015

I will try to do that that weekends, I have already planned that in the past

@CTOlet
Copy link
Owner

CTOlet commented Feb 13, 2015

Just now added rules, please test it. But I dont know how limit the max number of files in ajax uploading, because in ajax files have been uploaded one by one

@CTOlet CTOlet closed this as completed Mar 6, 2015
@maxxer
Copy link
Contributor Author

maxxer commented Mar 6, 2015

ok thanks, I will test. one question: is the limit allowed per model or just in global config?

@CTOlet
Copy link
Owner

CTOlet commented Mar 6, 2015

Now globally, I have not thought about how do that per model. If u know that please tell me (:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants