Issue uploading image to space

Posted January 15, 2021 212 views
PythonDjangoPython FrameworksDigitalOcean Spaces

Hello, i have a Django which recenly migrate from use AWS S3 buckets to use Digital Ocean Spaces.

The issue i’m having is the next:

When i try to upload and image to the space it looks like works fine, but in the moment i want to access that image the image doesn’t exist in the Space.

This is not happened with all the images, some images like PNG, 299x169 size 2.09 kb is uploaded and showning ok.

Also i’m not having any error message or some alert that there is a problem with the file upload.

Do you have and idea what could be happening?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hello, @Atneses

Have you tried to upload the failing images manually in order to check if everything works fine wit the manual process? The issue might not be with the way you upload the images but with the images itself.

I had a similar issue where an image was failing to load when trying to access it and I found that the image file was somehow corrupted and causing the issue for me.

Hope that this helps!