2

I'm doing some pretty massive uploads, up to 1gig. Right now if I upload a 1.1 gig file it uploads to the limit then fails.

Is there any way to make it fail before even beginning the upload?

2

The only easy way to check a file upload's size on the client-side that I know of is with Flash.

You should see if the Uploadify module works for you. I haven't used the module, but I have used Uploadify a lot, and it works great.

0

I haven't used them, but check out the Webform module and the companion Webform Validation module, together with the patch on comment #4 in this issue.

You may be able to avoid writing your own client-side validation with JavaScript/jQuery.

  • How would I apply these to a node form's filefield validation? – Joren Dec 6 '11 at 22:06
  • The issue is you need to do the validation in the client, so that requires javascript running in the browser. All of drupal's standard validation is done on the server side of things, as you've seen, after the form has been submitted. So, you are asking for a book sized answer here, hence my suggestion that you look at the two projects and patch, as they appear to create all the form validations "out of the box" you are looking for. – Jimajamma Dec 6 '11 at 23:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.