xfrocks
Well-known member
How to clean all those orphaned attachments?
I don't think there is built-in tool to do that. I might be wrong though.
How to clean all those orphaned attachments?
The safest way is to switch back to Default, run the move tool, then switch to external data (with maintain filename) and run the move tool.I just moved 450k+ images using this addon to /data/attachment-files/ directory.
(without Maintain File Name option check).
So my 450k+ images are filename as: {data_id}_{file_hash}.{extension}
Now I just enable "Maintain File Name"
as I want all images to have this filename: {data_id}_{name}.{extension}
How can I update old images on /data/attachment-files/ to have the new file name?
I've run the Move Tool, but it doesn't change old files.
Thanks a lot Sir.
I'm still using XF1.Are you still using this version for XF 1 or have you migrated to XF 2 yet? Just want to make sure you’re following the correct instructions and using the right addon version.
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>560296BDB4411371</RequestId>
<HostId>
SDPF1aopercmwOC/VbGdFlwRaXOh0ALjotb+l5XxZgmDq2hmBnEO41d19BSsRxr/D9ERJyoPPCk=
</HostId>
</Error>
Restrict Viewer Access
(Use Signed URLs or
Signed Cookies)
Yes. After 2 days of playing around with settings, and google searching, I had to make several adjustments to my s3 bucket settings and permissions as well as cloudfront settings and permissions. Settings that weren't specified at all in the severely lacking installation instructions. And with absolutely no help from xfrocks.I’m seeing a stock car image when I click on the link.
Edit: you must have done something because I see images on your forum in the Resources section of several Indy style race cars.
Just upgrade (DO NOT UNINSTALL) and the new version will pick up old storage options and continue to work.I am currently using the 1.x plugin version and am about to upgrade to XF 2.1. How do I upgrade this plugin for XF 2.1? When I initially migrate the old plugin will be disabled. When I install this new version will it find my old attachment store settings and "re-associate" attachments to threads?
OR do I need to migrate attachments back to my server before I upgrade the forum and then install the 2.x version and then migrate them back to s3?
This XF1 version is very stable so it doesn't need continuous upgrades.This is interesting functionality but I cant believe it hasnt been updated in years. This seems really dangerous to try to move my 30GB of attachments :/
Thank you. i came to this resource/discussion via google, and didn't see that there is a separate (and updated) resource for XF 2.x. Apologies, I was wrong hereThis XF1 version is very stable so it doesn't need continuous upgrades.
Thanks. Everything upgraded fine.Just upgrade (DO NOT UNINSTALL) and the new version will pick up old storage options and continue to work.
I repeat, do not uninstall the XF1 version because doing that will drop storage option column from your database.
Or is it just on xfrocks site.This is updated last 3 months ago:
https://xfrocks.com/resources/bd-attachment-store-for-xenforo-2-0.35/history
I'm using this on boards with 600k, 200k, 1.2M attachments perfectly fine.
That's about 40 errors for 500k files, 0.8% -- not too bad.
Oh, the attachment ID is different from data ID. If you want to find the attachment ID for data ID 123, run this MySQL query:
Code:SELECT attachment_id FROM xf_attachment WHERE data_id = 123;
We use essential cookies to make this site work, and optional cookies to enhance your experience.