Support » Plugin: Microsoft Azure Storage for WordPress » Can’t upload to Azure

  • Resolved donkanallie

    (@donkanallie)


    Hi,

    after updating to the newest version, i can’t upload media to Azure anymore. There does not appear any error, but when i look in my storage, there is just a text/plain with 0B in it.
    In the overview in wordpress only the broken link appears.
    The GET of older upload works. The container Access policy of the Container is set to Blob.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Ritesh Patel

    (@ritteshpatel)

    Hi @donkanallie

    You said there isn’t any error, is that server error log? Can you check Azure settings once and verify that “Use Windows Azure Storage for default upload” is enabled? One more thing I want you to check is, does “Uploading to Azure” then “Uploading to Azure (1/7)” etc message appears while uploading?

    Regards,
    Ritesh

    Hi,
    yes, neither showed in the View nor in the error.log. the “Use Windows Azure Storage for default upload” is enabled.
    yes, when i try to upload it, it does “Uploading to Azure” , then, i think, it “succeeds” but when i look in my container only a file with the type text/plain (but the correct name) with the size of 0 is uploaded. The reference (link) is also correct in WP. But the upload doesn’t work.

    Regards,
    Jonas

    • This reply was modified 2 years, 11 months ago by  donkanallie.
    • This reply was modified 2 years, 11 months ago by  donkanallie.
    Plugin Author Ritesh Patel

    (@ritteshpatel)

    Hi Jonas,

    I think this has something to do with filesystem access on your server. Can you download the zip from current develop branch and use that code? If filesystem access is not what plugin required than it will put an admin notice stating that it needs direct filesystem access. If you have stage/dev site, please check this code on that site first instead of production site.

    Regards,
    Ritesh

    Hi,

    I’ve installed the Plugin on my Staging Server from the Develop Branch and you’re right, it tells me:
    ‘Windows Azure Storage requires direct filesystem access in order to work.’.
    Does this message mean i need to change my rights for the wp-content/upload folder?

    Regards,
    Jonas

    Plugin Author Ritesh Patel

    (@ritteshpatel)

    Hi,

    Yes, you need to change rights for uploads folder such that php user can access those files. You can also refer this thread https://wordpress.org/support/topic/filesystem-api-permissions/ for similar issue.

    Let us know if that helps.

    Regards,
    Ritesh

    Yes, thank you very much, works now!

    Regards

    Plugin Author Ritesh Patel

    (@ritteshpatel)

    Hi @donkanallie,

    I am glad that it worked. Please let us know if you find any other issue.

    Regards,
    Ritesh

    I recently updated the plug in to 4.7 and I cannot upload images, It is the same escenario. The file size in Azure shows 0 Bytes, In wordpress sites apperars as broken Image and a message “Uploading to Azure… (1/9) ”

    I’ve tried using the develop branch versión as you mentioned and I’ve changed the wpconfig file adding:

    define( ‘FS_METHOD’, ‘direct’ );

    Neither Develop Version nor configuration worked for me

    🙁

    Do you have any update?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Can’t upload to Azure’ is closed to new replies.