WordPress.org

Ready to get started?Download WordPress

Forums

Windows Azure Storage for WordPress
[resolved] blob name is beginning with / (2 posts)

  1. Hideo HONDA
    Member
    Posted 2 years ago #

    The Plugin is given a name beginning with "/" to the thumbnail.

    Scenario as follows:
    Disable "Organize my uploads into month- and year-based folders" option at "Media Settings"
    Upload image file to media library.
    Original file is uploaded successfully.
    But thumbnail file is named beginning with "/".

    WordPress: 3.3.1 (Japanese)
    Windows Azure Storage for WordPress: 1.9

    Thank you.
    Hideo

    http://wordpress.org/extend/plugins/windows-azure-storage/

  2. Hideo HONDA
    Member
    Posted 2 years ago #

    I fixed the issue by myself. Modified 'windows-azure-storage.php' as follows.

    windows-azure-storage.php @ version 1.9

    before
    260: $blobName = $file_upload_dir . "/" . $size["file"];

    after
    260: if ($file_upload_dir == "") {
    261: $blobName = $file_upload_dir . $size["file"];
    262: } else {
    263: $blobName = $file_upload_dir . "/" . $size["file"];
    264: }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic