Open codyswanner opened 3 months ago
One that is coming up lately with dockerizing things -- new docker container does not have any users, so uploading new images fails because there is no user to assign images to. Might be useful to display an error message to this effect, rather than "unsupported media type" which is absolutely not the problem in this case.
sendCSRFRequest and handleUpload (UploadForms.js) work together to determine if something has gone wrong with a file upload and display an error to the user. Currently the only error to display is "unsupported file type," and these functions do not check if that is actually the error being thrown. Implement some logic to make sure that is the error, and create a new catch-all error message that can be displayed if the system doesn't have a dedicated error message for what went wrong. (Specialized error messages can be created as needed.)