[bd] Data Storage [Paid] 1.2.3

Store data in remote servers.

  1. Maximilian

    Maximilian New Member

    Can you support KeyCDN? I find that it's better than Amazon S3 due to the fact that the "Custom SSL" feature is totally free (no need to pay extra money to have your own subdomain under ssl), and there are no monthly fee.

    There are a free trial so you can test it...i haven't tried this but i found good reviews so i think it can be a good alternative for persons that doesn't want to pay 20$ extra monthly to Cloudflare or extra money to s3 just for have own ssl cert.
     
  2. xfrocks

    xfrocks XenForo rocks! Staff Member

    That's possible but it may be not added in the near future because I'm quite busy already and it seems like not many people use the service.
     
  3. milktea

    milktea New Member

    How can I synchronize the internal_data directory? The attachments are stored in internal_data/attachments. Thanks.
     
  4. xfrocks

    xfrocks XenForo rocks! Staff Member

    This add-on deals with /data only. If you want to upload attachment, you may want to take a look at [bd] Attachment Store.
     
  5. milktea

    milktea New Member

    The other product synchronizes internal_data/attachments with Amazon S3?
     
  6. xfrocks

    xfrocks XenForo rocks! Staff Member

    Yes. But the other add-on will not synchronize avatars and other files in /data. It only works with attachments (full file + thumbnail)
     
  7. ogirginc

    ogirginc New Member

    Does it support 1.4?
     
  8. xfrocks

    xfrocks XenForo rocks! Staff Member

    XenForo 1.4 has been tested without issue.
     
    Puropedia likes this.
  9. Nikita

    Nikita New Member

    Hi,

    We purchased this plugin and made the changes in config.php as mentioned and moved data to remote server i.e. s3.

    But it is not showing any image file(Profile pictures). Could you please tell us what should be the directory structure at remote server where we keep the /data directory data?
     
  10. xfrocks

    xfrocks XenForo rocks! Staff Member

    I have replied to your conversation.
     
  11. xfrocks

    xfrocks XenForo rocks! Staff Member

  12. king8084

    king8084 New Member

    Hi,

    where exactly should we place the data folder on the s3? Is the root fine?
     
  13. xfrocks

    xfrocks XenForo rocks! Staff Member

    No, contents of /data, not the "data" directory itself. I also replied to your message.
     
  14. jakew009

    jakew009 New Member

    Hi @xfrocks,

    Xenforo version: 1.4.7 using the S3 stream writer we uncovered a bug where users could no longer change avatars. The problem seems to stem from StreamWrapper/Abstract.php->url_stat function, specifically the caching functionality. I'm not 100% sure what the reason is but it seems like the caching confuses the Xenforo_Helper_Filer::createDirectory method.

    This I believe happens because the url always comes in something like ds0://avatar/l/12/123456.jpg the stat() of which is then cached. I *think* the first time this is seen and stored as a directory, but the second time it hits this method it fails because the cached stat is incorrect.

    This is similar to the problem reported here, https://xenforo.com/community/threads/bd-data-storage-paid.70136/page-4#post-942381 but that solution didn't work for me and I couldn't work out why it would fix this specific issue.

    [bd] Data Storage [Paid]

    brand new competition with a brand new thumbnail image Did you made the changes as mentioned here? https://xenforo.com/community/threads/competitions-for-xenforo-paid.59696/page-11#post-666866
    xenforo.com


    As as temporary work around I've hardcoded $cached to false in the url_stat() method and removed the call to file_put_contents in the _cacheSaveFile method. This gets the images once again being uploaded to S3.

    Would be great to get this working as you intended on our servers :)

    Thanks again for the plugin, it's really helped us :)
     
  15. xfrocks

    xfrocks XenForo rocks! Staff Member

    What is your PHP version? This site is running avatar from S3 and it works well so far.
     
  16. David B. Bitton

    David B. Bitton New Member

    I'm trying to use the same S3 bucket for Attachment Store and Data Storage. It looks like I'm running into issues with signed URLs; of which are enabled in Attachement Store. CloudFront links are returning:

    HTML:
    <?xml version="1.0" encoding="UTF-8"?><Error><Code>MissingKey</Code><Message>Missing Key-Pair-Id query parameter or cookie value</Message></Error>
    Should I be using a different bucket? What is the correct way to use both add-ons? Thanks!
     
  17. xfrocks

    xfrocks XenForo rocks! Staff Member

    Please take a screenshot of the attachments option page. Sorry for your issue.
     
  18. David B. Bitton

    David B. Bitton New Member

    I figured it out. I needed to create an additional CloudFront behavior just for /data/*. Everything served from that directory in the S3 bucket no longer needs a signed URL. The balance of the S3 bucket requires a signed URL.

    [​IMG]

    [​IMG]

    [​IMG]
     
  19. 423

    423 New Member

    Should this not work with XenGallery as well?
     
  20. xfrocks

    xfrocks XenForo rocks! Staff Member

    They should work well together.
     
Loading...