Skip to content

Adding maximum file limit feature #32

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Adding maximum file limit feature #32

wants to merge 1 commit into from

Conversation

faheem00
Copy link

This script is great, except for one limitation - user cannot enter a maximum file size. I have added that functionality. User will input a parameter named maxSize (by default it will be 1024), which will be counted as kilobyte. Then the file size will be compared with user's given size limit. If the file size exceeds the limit, the file is not uploaded and an error message shows.

This script is great, except for one limitation - user cannot enter a maximum file size. I have added that functionality. User will input a parameter named maxSize (by default it will be 1024), which will be counted as kilobyte. Then the file size will be compared with user's given size limit. If the file size exceeds the limit, the file is not uploaded and an error message shows.
@jfeldstein
Copy link
Owner

Can you:

  1. Remove the default maxSize
  2. Change validation to if (maxSize && ...) { so it won't complain if there is no maxSize specified
  3. Fix conflicts

@jfeldstein
Copy link
Owner

Also, please combine #33 into this PR.

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

Successfully merging this pull request may close these issues.

2 participants