DEV Community

Gabriel Guzman
Gabriel Guzman

Posted on

What are the constraints for uploading an image?

Tried uploading a header image and I got an error message that just said "invalid file" but didn't give me any reasons why the file was invalid. I assume it's because it's over the file-size limit, but I'm not sure what that is. Any way we could improve this error message, or barring that be more descriptive about what the requirements are for the image near the "upload image" dialog?

Top comments (3)

Collapse
 
ben profile image
Ben Halpern

Max resolution is 4096x4096, which is probably what you're hitting. Sorry about the bad error message at the moment.

Collapse
 
edong profile image
Eric Dong

How about for uploading gifs? There is probably a size limit

Collapse
 
gabeguz profile image
Gabriel Guzman

Thanks!