django-cloudinary-storage does not anticipate Windows paths
See original GitHub issueIf a document is named using Windows styled path, the _save
method causes problems.
def _save(self, name, content):
# name is path\to\some\image\image.jpg on Windows machine
name = self._prepend_prefix(name)
# name becomes media/path\to\some\image\image.jpg if `settings.MEDIA_URL` is /media/
...
At the end, the resulting filename on cloudinary is something like media/\path\to\some\image\image_asdfghjk.jpg/ causing cloudinary to complain.
I think it will be nice if django-cloudinary-storage
also works well on Windows. I can supply a fix which makes sure the name
variable in _save
is in unix style.
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
This backend doesn't support absolute paths. #30 - GitHub
I am trying to upload an image following the documentation but getting the error : This backend doesn't support absolute paths.
Read more >Image Transformations for Developers - Cloudinary
Learn how to dynamically transform images with one line of code: crop, resize, add borders and background, face detection, rich image ...
Read more >django application using markdown and cloudinary
After dragging and dropping an image it saves the image to Cloudinary. But the image path in the markdown field is not correct....
Read more >Clustering 4000 Stack Overflow tags with BigQuery k-means
Now get ready for some SQL magic. BigQuery ML does a good job of hot-encoding strings, but it doesn't handle arrays as I...
Read more >Simple index - piwheels
... jsonf django-simple-coupons django-tinymcewrapper leroque-bagd1k dia datasette-jupyterlite tlstrust there-is-no-spoon robotframework-lsp pastebin-mirror ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here are snapshots of the error.
By default, zinnia uploads to a directory named ‘uploads’ concatenated with the year, month and day the image was saved hence in this particular case - 'uploads\zinnia\2017\01\11'.
Let me know if you need any more information.
Thank you for your pull request. I added 1 comment to it, please review it, thanks in advance.