Uploading a file causes an error
I tried uploading a file and there's an error that doesn't let me proceed.
Information that might help debug:
- I edited an existing post (didn't create a new post) in the documents area of a space.
- I have the media module configured with Cloudflare R2.
- The image attached is a screenshot of the error that appeared. The error also dissapears way too fast, so I had to repeat the process to catch it on time.
Let me know if there's anything I can do or any additional info to provide.
The issue is not related to R2, the upload helper wasn't surfacing the real validation error (likely an unsupported file type), so it crashed instead of showing a clean message. Clean validation error message has been configured in dev.
Tawsif Ahmed RiyadΒ the file was a PDF, just like the other files uploaded on the same post. It was also smaller than the ones previously uploaded.
Ok, I figured it out thanks to an older post here with the same issue. I recently downgraded the PHP version on my server to 8.2 to fix a bug. I just upgraded to 8.3 and the file uploading issue is fixed.