windows-azure-storage icon indicating copy to clipboard operation
windows-azure-storage copied to clipboard

Need the images to be uploaded to wp-content/uploads/

Open emmigereb opened this issue 1 year ago • 3 comments

Describe your question

Hello It might be obvious but I can´t seem to be able to figure it out. When we upload images the should be uploaded to in the azure storange like this: /wp-content/uploads/2021/10/image-name.jpg. But what we get is this: /2021/10/image-name.jpg (without the wp-content/uploads/) Is there some setting to change the path so the images are uploaded in the storage to wp-content/uploads/year/month - instead of just year/month?

We used w3-total-cache plugin before to connect to azure storage and all the files we uploaded ended up in in azure storage with the right path (wp-content/uploads/year/month). With this plugin they are uploaded outside /wp-content/uploads/, just year/month. Screenshot 2023-09-08 at 11 52 24

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

emmigereb avatar Sep 08 '23 09:09 emmigereb

@emmigereb Are you proxying to this path or using azure.com or blob.core.windows.net URLs in source of images?

rickalee avatar Sep 08 '23 14:09 rickalee

I have the default settings. But I watched some videos on YouTube and it seems that is the default setting to upload like year/month. Without the WP-content/uploads.

emmigereb avatar Sep 08 '23 17:09 emmigereb

@emmigereb what you're looking is to have a URL more in the WordPress format? If so, by using the CNAME setting in the plugin you can make the image URLs be like yourdomain.com/wp-content/uploads/yyyy/mm/image.jpg

Screenshot 2024-06-13 at 12 30 23

hugosolar avatar Jun 13 '24 17:06 hugosolar