@anto74, you need to enter FTP information into Attachments option. Then run the tool Move Attachment Data. For upload path, enter the absolute FTP path as you see in your FTP client upon login. For root URL, enter the URL will be accessible to the configured upload path.
Hi @xfrocks i have little problem of compatibility with Xen Photo Contest addon (http://xenforo.com/community/resources/xen-photo-contest.2755/) The photo thumbnail not shows when i upload photo to server, only full image shows. I have contacted the developer (sniper) and i have added this code in Listener.php after line 21 Code: if ($class === 'Luqman_PhotoContest_Model_Attachment') { $extend[] = 'bdAttachmentStore_XenForo_Model_Attachment'; } After edit Listener.php file the upload stops at 100% and the attachments not shows. The developer said the code might have changed for your addon since he last had a look. After edit Listener.php i have this error in log error: Code: ErrorException: Fatal Error: Cannot redeclare class XFCP_bdAttachmentStore_XenForo_Model_Attachment - library/XenForo/Application.php(513) : eval()'d code:1 Generato Da: antonio de santis, 16 minuti fa Analisi dello Stack #0 [internal function]: XenForo_Application::handleFatalError() #1 {main} Stato Richiesta array(3) { ["url"] => string(120) "http://www.macroforum.org/attachments/do-upload.json?hash=539449415e22ec9ad8dff916ea24fcc7&content_type=lkpc_entry&key=3" ["_GET"] => array(3) { ["hash"] => string(32) "539449415e22ec9ad8dff916ea24fcc7" ["content_type"] => string(10) "lkpc_entry" ["key"] => string(1) "3" } ["_POST"] => array(6) { ["Filename"] => string(10) "amore2.jpg" ["_xfNoRedirect"] => string(1) "1" ["_xfToken"] => string(8) "********" ["_xfSessionId"] => string(32) "e3f705f52890e4089b21bf41c6afc971" ["_xfResponseType"] => string(4) "json" ["Upload"] => string(12) "Submit Query" } } It's possibile solve this little incompatibility or not? Thanks! Antonio
xfrocks @anto74 It is not the way to fix it... IIRC we had a three way conversation regarding this, right?
anto74 @xfrocks No, three way conversation was for XenGallery, with sonnb Ok, the user will insert in form the full image, is the same Thanks! Antonio
Ah, it was a three way convo with another member. Sorry I remembered it wrong. I believe Sniper has another fix something like this, you should ask him:
I have contacted Sniper and he said this: For now i'm using Remove thumbnail insert addon from AndyB, so taht user insert directly the full size image Thanks Antonio
anto74 @xfrocks Now when user upload photo from PC he can insert as full image, but the thumbnail always not shows ...it's little problem...for now i have not other solution
No...the photo is uploaded correctly, ( computer or smartphone), FTP storage works correctly, the photo/attachment is stored to remote server, but the thumbnail is not created. In this screenshot the point n.1 is thumbnail ( not shows but the photo is correctly stored in ftp remote server), the point n. 2 is full size image ( shows ok)
xfrocks @anto74 This is still a problem with the other add-on. I can help you to fix it temporarily but if the author doesn't fix it himself then you will need to do the edit everytime he updates.
Some of you guys have asked for avatar on remote server, after carefully evaluation, we have decided to develop a new add-on to do that (and more!): the new add-on supports avatars AND everything that is put into external data directory (/data), some example includes attachment thumbnails, Cache CSS file and so on... Because you guys have been supporting [bd] Attachment Store for so long, I'm offering an exclusive price for everyone who purchased [bd] Attachment Store: getting [bd] Data Storage at half the price $9.99. Just login with your account and you will see the discounted price immediately. Thank you
xfrocks @hlchia They do completely different things. This add-on handles attachments (both thumbnail and files). The other add-on works with files in external data directory. By default, XenForo put avatars and attachment thumbnails here.
I'm trying to lock down the security of my servers. I would like to stop using S3, bring the files back to the server, and just use CloudFront with my site as the origin. What's the easiest way to go about doing this? Thanks!
xfrocks @David B. Bitton Easiest way is to switch mode in add-on option page (default or external data) then run the move tool. I will take quite a long time though.
David B. Bitton @xfrocks I noticed that the CloudFront option is only available when using S3. I want the option to use CloudFront with the site as the origin. Also, where is the move tool? Thanks.
xfrocks @David B. Bitton The CloudFront option show up for S3 because using S3 and CloudFront together has some special things that need to be taken care of. You can configure CloudFront as your site CDN without using this add-on. The move tool is at AdminCP > Tools > Rebuild Caches.
Found it. So, select Default and then click Rebuild Now? This will pull the image back down from S3 and onto my server? Thanks!
xfrocks @David B. Bitton You select default in AdminCP > Options > Attachments. Then run the tool "Move Attachment Data", NOT the one named "Update Attachment Data Storage Options" -- that's a different tool.
Hi I just purchased and installed this addon for my forums at http://community.centminmod.com/ but after following the instructions, I am not seeing attachments served via /data directory i.e. attached images at http://community.centminmod.com/threads/font-awesome-is-awesome.180/ I set admin options > attachments to data directory and rebuilt attachments or do I hit move attachments ? That step is a bit unclear. Thanks edit: okay it was move data that did it
what's the best way to change the url for attachment files /data/attachment-files ONLY to be served via my own custom cdn proxy (cmstatic1.centminmod.com) ? so attachments referrenced as community.centminmod.com Code: https://community.centminmod.com/data/attachment-files/2014/06/487_myposts_00.png become cmstatic1.centminmod.com Code: https://cmstatic1.centminmod.com/data/attachment-files/2014/06/487_myposts_00.png but do it in a way that doesn't require config.php entry Code: $config['externalDataUrl'] = 'https://cmstatic1.centminmod.com/data'; as I DO NOT want to serve bd cache's css files via the custom cdn proxy but KEEP it being served via the original domain community.centminmod.com Code: https://community.centminmod.com/data/bdCache/css/1404525371/899994204e7cadf76fe.css
xfrocks @eva2000 I have included a new option to allow you to change the root url for attachments. The new option will be available in the next version of the add-on.
Sorry I'm a bit unclear on the functions of the rebuilding tools. So, all of my old attachments (2004 to 2013) are still being served from the default local data location. Newer attachments are being served from s3 with this addon (wohoo!). How do I move all old attachments into s3 and serve them from there? I have "s3" option checked in admincp -> options -> attachments, so now do I just click " Move Attachment Data" ? What is a situation where one would use "Update Attachment Data Storage Options"? Thanks!
xfrocks @kontrabass You would need to use "Move Attachment Data". The other tool is used if you need to change the Amazon key/secret or similar.
Thanks for your help! One last issue before I go away So, I changed my attachment store options from using s3 + cloudfront to just s3 (no cloudfront). All of my attachments look ok in the forums, but in @Chris D 's Xen Media Gallery, thumbnails for all NEW media uploads are broken... until I rebuild them, then they're fine again. Old media (pre-change) are all ok. Is there something I can do?
Hi @xfrocks, I've moved a XF forum to another XF forum (both runnign 1.3.4) the old one utilizes the attachment store addon, I have also installed it to the new board. Later today users said that their images (attachments) are different from before. I checked and it turned out like they were describing; other images from posts show up in posts while the original photo remains attached to the post. Is this releated to your addon? Thank you!
xfrocks @yavuz Show up? In theory, user can link directly to attachments with IMG bb code tag so it is a bit unclear. If the images are still attached to the post (displayed in a grid at the bottom of the post), it is in good condition. Can you take a screenshot or send me link to the problematic post?
yavuz @xfrocks Let me get back to you on that. After I posted you this message I used Andy's insert attachment as full addon. That did most of the job but there are still faulty ones. Some images appear to be broken... Weird stuff... I send you an admin access first time I get back home.
@xfrocks it seems that attachments are not moved to the external directory anymore. Some of them are throwing errors (404) I had also run the cron to move the attachments back to the external folder.
yavuz @xfrocks I mean, you know what my site has been through A back and fourth thing happened but with the current settings the attachments should be moved to the external directory. This isn't happening.
xfrocks @yavuz Then definitely a conflict which prevent the add-on from processing new attachments. I will need your site access to see which add-on may cause this.
Hi, I bought the attachment store extension and set it up on my xenforo forum. Here is a screenshot of my settings in the ACP When i upload a file, it shows an error - There was a problem uploading your file. I have double checked and the access key/Secret Key/Bucket name is correct. If i disable the extension, then the upload works fine. Please help. Very ugent!
xfrocks @Vamsee Chittajallu The config looks good. Please send me your key pair via conversation. I'll test with my server to verify the issue. Sorry for the inconvenience.