Uploading of Images or Documents does not work on our server. (It works on the laptop I'm using for development). The Wagtail admin interface simply reports "
Sorry, upload failed" -- which doesn't provide much to go on.
- I have verified that the application can successfully write files to the media folder and its subfolders, so it doesn't seem to be a directory permission problem.
- The problem has occurred with a .jpg image, a .png image, and a .txt document.
Any ideas about where the problem might be, or how to approach debugging this?
* * * * *
As an odd side note, the behavior the first time I encountered the image upload problem differed from the behavior all subsequent times. Similarly for the first time I encountered the document upload problem. Restarting the server doesn't cause the "first time only" behavior to reappear.
I don't recall the first-time Image upload error behavior, just that it was different.
For the document upload, the first-time behavior was to report an exception because a template could not be found (running with DEBUG=True since we're not public yet).
The subsequent-time error behavior is to show the upload progress bar ramp up to 100 percent, then say "Sorry, upload failed."
Any clue why the first-time behavior might have been different?
* * * * *
I'm finding this puzzling. Any clues would be appreciate.
Bob