![]() |
|
Thread Tools |
#1
|
|||
|
|||
Copy Attachments in file-system
We have a forum, where all attachments are in the database... and they should stay in the database.
But I want to download all attachments in our forum to a special folder on the server... where I also can then see, from which user this attachment is... and the extension should also be right - for example ".jpg" ... Is there a workaround for this? Thank you! No members have liked this post.
|
#2
|
||||
|
||||
I wouldn't suggest this but you can set your folder to a public location. All files will be in numbered folders.
__________________
No members have liked this post.
|
#3
|
|||
|
|||
Thank you - but I know this way. I want to keep the files in the database - just make a copy of them into the file-system.
![]() No members have liked this post.
|
#4
|
|||
|
|||
As far as I know there's no automated tool for this.
You'd have to make a script for it or find someone to make a script for you to export it from the database into the filesystem with the right filename and extensions and into user folders. No members have liked this post.
|
#5
|
||||
|
||||
I wouldn't keep them in the database regardless, that's for sure.
It's smarter to have them in the file system. It's mapping like you're asking that's the not so easy part.
__________________
No members have liked this post.
|
#6
|
||||
|
||||
Guys - how now brown cows!
This is so easy it hurts (lol) i.e. just move them to filesystem (so it generates the files accordingly) then copy the files so you have the "copy" of the attachments you desire. Of course the files will not have the proper names but will be viewable in an image editor. Once done downloading simply move them back into the database and done. Super easy unless I missed something? ![]() Edit: Ahh I see why you all thought... okay okay so basically yes it will be for example file names such as 34.attach and then the thumbnail would be 34.thumb which is clearly not 34.jpg or 34.png HOWEVER you can open these via photoshop OR a free program called Gimp 2 and they will open and display the file fine for viewing, you can then save to a proper windows style extension instead of vBulletins .thumb/.attach etc etc.
__________________
Daddy Does Dios and Figs! *I no longer provide vBulletin Services (No PM's, please). Search - Use the search feature to find similar issues/answers. Information - Include screenshots, copy/pasted error codes, url etc. Fixed - Please return to your thread/post and let us know how it was fixed! Thanks - For participating! Click the "Like" ♥ on a post if someone helped you! No members have liked this post.
Last edited by TheLastSuperman; 26 Sep 2016 at 21:54. |
![]() |
Tags |
attachment, copy, download, file |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 19:59.