Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<object>.path is not the correct path file on amazon #3

Open
uncletomiwa opened this issue Aug 5, 2013 · 2 comments
Open

<object>.path is not the correct path file on amazon #3

uncletomiwa opened this issue Aug 5, 2013 · 2 comments

Comments

@uncletomiwa
Copy link

I noticed that when I upload a file using the image field, the file reflects in my s3 bucket, but the url attached to the ImageField does not link back to the object, I get a 404 Error

@qnub
Copy link
Owner

qnub commented Aug 5, 2013

Yes, that's correct. Because of path is the local system path for django, and because of this you can't use this storage as DEFAULT_FILE_STORAGE. But <object>.url - must return file's URL…

@uncletomiwa
Copy link
Author

Thanks for your quick response.
I did not use it as default storage. What I noticed is that at amazon changes the "/" separating folder and the file name to "%5C". That then invalidates the link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants