mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 19:38:24 +00:00
7af01d88d2
When creating files with create-multipart, if the file size was somehow zero we were showing a very unhelpful error message to the user. Now we show a nicer message, and proactively don't call the API if we know the file size is 0 bytes in JS, along with extra console logging to help with debugging.