Topic: Error preventing me from uploading file?

Posted under General

This is kinda frustrating cuz I spent like 5 minutes trying to tag this post properly. Regardless, I can't post it because I keep getting this error:

"error: ActiveRecord::RecordInvalid - Validation failed: File ext is invalid (only JPEG, PNG, GIF, SWF, and WebM files are allowed, File size is too large. Maximum allowed for this file type is 0 MiB"

I don't know what this means. First it says file extension is invalid (It's a GIF), then it says file size is too large but says that the max is 0 MB? What do I do here

If you're uploading this from a site, what, specifically, is the URL you're attempting to upload this from?

strikerman said:
If you're uploading this from a site, what, specifically, is the URL you're attempting to upload this from?

I'm uploading from my PC directly.

I'm having a similar problem trying to upload a webm file from my desktop. The error message I get when I try to upload it is "error: ActiveRecord::RecordInvalid - Validation failed: File ext audio/webm is invalid (only jpg, gif, png, swf, webm, mp4, and zip files are allowed"

You almost certainly have a mp4 file with the wrong extension. The site does not allow mp4 uploads. Same with the latest reply in this thread.

kiranoot said:
The site does not allow mp4 uploads.

mystery_creature said:
"error: ActiveRecord::RecordInvalid - Validation failed: File ext audio/webm is invalid (only jpg, gif, png, swf, webm, mp4, and zip files are allowed"

Should probably fix the error message then?

wat8548 said:
Should probably fix the error message then?

Yeah, not sure where that error comes from, will have to hunt it down. The one about invalid extension that doesn't specify mp4 is the one that's supposed to show up.

The file extension is probably still part the config, but specifying a file size limit of 0. I made the error message dynamic, since the newly added mascot stuff only allows jpg and png. The hardcoded error message wouldn't have made much sense there

  • 1