I'm trying to upload a rather big png logo. Here are the system properties of the file https://i.postimg.cc/Dwr0tycF/Screenshot-2024-12-19-at-13-27-28.jpg, here's the filesize shown during the upload https://i.postimg.cc/3N0J9Kws/Screenshot-2024-12-19-at-13-24-43.jpg, and here's the result of the upload https://i.postimg.cc/65RCpKhb/Screenshot-2024-12-19-at-13-24-48.jpg
Last I checked the basic math, 12.5 MB shown by the local system and 11.89 MB shown by the uploader are less than 14 MB. So what's the problem?
Initially, the image was 17 MB, so the first upload attempt legitimately failed. After that, I shrunk the image to reduce the size but didn't change the filename. Could it be that the original bigger file is still 'cached' in the system, and subsequent uploads are just being ignored?
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by Travis Bell
on December 20, 2024 at 1:40 AM
Hey @shotfirer,
I'm not sure what would cause that. There's nothing that should be caching previously failed uploads, so I don't think that would be an issue.
Can you post the file somewhere so that I can take a look at it?
Thanks.
Reply by Jim Stark
on December 20, 2024 at 1:44 AM
sure, here's the smaller file, and the bigger original file. And here's the show in question.
Reply by Travis Bell
on December 20, 2024 at 2:38 AM
Thanks, I was able to investigate this a bit more. What's happening is we don't check the file size until after it's been sanitized and checked as valid by our image service, and during that process we do mutate the file. This doesn't normally cause any issues, but something with this file is causing it to bump up in size, just enough to cause it to fail the last check.
I don't have time to look at this anytime soon, so for now, shrink the file just a bit more, and it will go through.
Interesting find though!