DEV Community

loading...

What are the constraints for uploading an image?

Gabriel Guzman
I'm a developer turned manager, father of 2, farmer and open source zealot.
・1 min read

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?

Discussion (2)

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
gabeguz profile image
Gabriel Guzman Author

Thanks!