![]() |
Uploading to External Server
I'm trying to find a script that will allow uploading files to an external server, different from where the forum is installed. It will be an IIS server on a personal computer with 400gigz of space. There was a similar hack installed on vb2.
Thanks... |
bump... any ideas?
|
this is the script I'm using to transfer my avatars to a different server - maybe that would be helpfull...
PHP Code:
scotty |
Thanks, I can see what your script does. The problem with this is that the attachments do not upload to the forum server as individual static files. So copying them to an external server might not do the trick. I'll need to embed this into the upload script somehow.
|
How do you mean they not upload as individual files?
|
Yes they do Marco. But they dont save as individual files on the server. The attachments have their own way of storage. I looked at the folder where they save to and it looks like this:
\attach\1\...9\ All the files are named ####.attach on the server. But within the forum, each file shows the origional attachment name as uploaded (.jpg, .txt, .mp3) |
the attachments are stored in the database, not in your storage.
thanks scotty for the script. You give me the idea how to upload from a server to another. edit: it's possible to query a remote server from the local one, that way you can store attachment in your desired server and it's still use the database. but this requires a lot of changes I think. |
@deathemperor
Well vB give you the choice where to store them, in the database or in the filesystem. @kompakt They DO save as individual files if stored on filesystem. they are however not named the same as teh attachment. Wanted to research how to relate a filename on filesystem back to the attachment name, but never found time for doing so, but i guess others already have. |
oh I thought I've seen it somewhere in vboptions ^^ but I was not sure.
by either way you have solutions... |
Quote:
You can choose to store all your attachments in database or filesystem. And no, i didn't give a solution. |
thanks you for pointing it out, I guess I knew every part of my ACP already ^^.
if you want to move those attachments store in db, you have my idea. otherwise you have the script posted by scotty, it has to be modified though. what else ? |
How will storing them in the filesystem effect the bandwith?
|
Quote:
Thanks for trying to help guys... |
Quote:
|
All times are GMT. The time now is 10:58 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|