I have strange thing with uploading CDN. I already try to reset settings etc. Even copied files with azcopy. Page is uploading fully but always gettings this erros.
]]>Recently I start using this plugin which (I’m considering buying it’s pro version), but first I need some help on how to resolve some issue.
Since I’m using Azure Blob Storage to store all the media files in my WordPress website (just the images at this moment), I need to change the directory that Smush is reading the images because by default the images are being read from “wp-content/uploads”.
How can I change this directory?
Best regards,
Mário Teixeira
The problem I’m having is that I can’t see the files in the WordPress Dashboard at all – they all show as blank grey boxes in the media manager with 404 errors coming through in the developer tools.
I suspect that this is because it’s not designed to work with private containers.
1) Is this correct?
2) Is there a workaround for this? I see a deprecated function ‘createSharedAccessSignature()’ that looks like it’d be useful, but it isn’t called from anywhere.
Here is what is displayed in the Chrome
https://prnt.sc/ml0vmy
On Mozilla when opening the homepage of the website, the file gets downloaded. The filename was thjLc9_o.
If I purge all the cache, everything starts working fine again.
]]>Hi,
I’m setting up a new WordPress 5.0.2 site on an Ubunto 18.04 Linux VM hosted in Microsoft Azure. I have installed the “Microsoft Azure Storage for WordPress” plugin and successfully connected it to a BLOB in my Azure Storage Account. Now when I upload images into the WP Media Library the images are uploaded into the BLOB, as expected. After upload, the images can be accessed directly via their CNAME URL.
So far, so good.
The problem occurs when I try to use one of those images as the Theme Logo. I have the standard WordPress “Twenty Sixteen” theme activated, and when I choose…
Appearance -> Themes -> Customise -> Site Identity -> Select Logo
… I can view the images stored in the Blob from within the “Select Logo” dialog. But when I select the image I wish to use I am taken to a “Crop Image” dialog. I expand the crop rectangle to cover the whole image (since I don’t want it to be cropped) and then click on the “Crop Image” button. At this point I receive the error message…
“There has been an error cropping your image”.
Note that I can successfully insert the same image into a post using the ‘Add Media’ button of the post editor. Obviously this is a read-only operation, whereas I assume that the crop process described above is either trying to re-write the original image back to the BLOB or else write a new copy of it to the BLOB. But the BLOB must be writeable at some level (see ** below), because WordPress (via the plugin) managed to upload the images in the first place.
Note also that if I upload the image to the Media Library without the “Microsoft Azure Storage for WordPress” plugin installed, such that the image is uploaded to the local disk on the Virtual Machine (i.e. the …/wp-content/uploads/… path), then I can successfully add the image as the theme logo via the above process without receiving the above error, So I conclude that the issue is caused by the plugin and/or my BLOB configuration.
Any suggestions / explanations / solutions would be very much appreciated.
Many thanks
System Details:
===============
Host: Ubuntu Linux 18.04
PHP: 7.2
Database: MariaDB
WordPress: 5.0.2–en_GB
Theme: Twenty Sixteen by WordPress Team
Microsoft Azure Storage for WordPress plugin: Version 4.1.1
** BLOB Access Level: “Anonymous Read Access for Blobs Only”
If I choose just “Add Media” instead of “Add Media From Azure”, I can find the stuff in my Media Library.
Why does “Browse Azure Storage” not see anything?
]]>For an event website I need to grab new speakers profile images – along their company data.
They usually will attach profile images in various shapes and sizes and there is a lot of work to do after we receive their images, cropping all of them to a standard dimension.
To solve this problem, I’ve implemented a javascript solution which allow them to crop their profile image to a standard dimension before submitting the form. They use the tool I’ve embedded in CF7 – they crop their profile image – then from html5 <canvas> element I get the correct image blob and I show the cropped picture. The next step is to attach my image blob to the mail using new CF7 adopted FormData.
my blob how it looks in console : blob:https://localhost/31a63fc2-164c-4527-bcf9-ebe1612b645d1
in CF7 scripts.js under wpcf7.submit function (around line 190), I’ve created the blob to be attached
var nBlob = new Blob([croppedBlob], {type : “image/png”, name:croppedBlobName});
(in console looks like this : [object Blob])
however, I got a message error in console : TypeError: data is null;
which is coming from ajaxSuccess function (Scripts.js line 219) – specifically is stops on this line : id: $( data.into ).attr( ‘id’ )…
Therefore on submit anyway my object is not sent as attachment.
So the real question is – how we (CF7 users) can send blob objects with contact form 7 – which is the correct procedure ? can we use a WP hook for this case ? or should I save the blob as image locally on a folder (where CF7 can look for .. ) then attach the image to the form ?
]]>