Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 19 Jun 2013, 17:50
tareqbd tareqbd is offline
 
Join Date: May 2011
Upload attachment to external server

I was thinking if it is possible to write a script to allow uploading the attachments/images to external or another server using cdn.maindomain.com
It would be great as will not use much time in restoration and back up process if files are stored in different ftp server.
I wish some coders can do it.
Reply With Quote
  #2  
Old 01 Jul 2013, 23:19
cravendale cravendale is offline
 
Join Date: Oct 2010
This would be a great idea.
Reply With Quote
  #3  
Old 02 Jul 2013, 00:50
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Real name: Zachery Woods
So, I know its possible, but what is the advantage?

You need some basic resources to be stored on the remote server as well. attachments are currently served via php. Which means attachment.php and its required files would also have to be stored on the remote server, and a remote db request would have to sent as well.
__________________
Looking for ImpEx?
Reply With Quote
  #4  
Old 07 Jul 2013, 15:17
tareqbd tareqbd is offline
 
Join Date: May 2011
Originally Posted by Zachery View Post
So, I know its possible, but what is the advantage?

You need some basic resources to be stored on the remote server as well. attachments are currently served via php. Which means attachment.php and its required files would also have to be stored on the remote server, and a remote db request would have to sent as well.
If the contents are served using remote db, isn't it vulnerable? I wanted to use ftb server only.Well, the advantage I thought is "won't need more time to restore the main db, in-case I need to change the webhost.
Reply With Quote
  #5  
Old 08 Jul 2013, 16:01
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Real name: Zachery Woods
That sounds like a bad idea.
__________________
Looking for ImpEx?
Reply With Quote
  #6  
Old 09 Jul 2013, 16:42
vbresults vbresults is offline
 
Join Date: Apr 2009
There is a safe way to implement this idea. How likely anyone is to make it for vBulletin.org is another question.
Reply With Quote
  #7  
Old 09 Jul 2013, 21:20
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Real name: Zachery Woods
Originally Posted by vbresults View Post
There is a safe way to implement this idea. How likely anyone is to make it for vBulletin.org is another question.
There are tons of safe ways to do this, however most of them seem to have a rather large amount of overhead that complicates the entire matter. Esp if someone just wants to store their attachments offsite to avoid "downtime" when moving hosts.
__________________
Looking for ImpEx?
Reply With Quote
  #8  
Old 26 Jan 2014, 22:04
Manoel Júnior's Avatar
Manoel Júnior Manoel Júnior is offline
 
Join Date: Feb 2009
Real name: Manoel Júnior
I need this
Reply With Quote
  #9  
Old 26 Jan 2014, 22:25
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Aug 2009
Real name: Chris
There really is no need to do this, if you are having server issues due to images, it's time to upgrade the server, not look for band-aids to put on it.
__________________
You can get access to my 180 mods for vB 3.6 - 4.x at The Admin Zone as well as the professional support you are used to. New vBulletin Spider Definitions, vBulletin Spiders List Hits 1000 Spiders! ​ OzzModz down. Site has had a data breach, checking how the intrusion happened. Change your PW if you use the same one on my site and others.
Reply With Quote
  #10  
Old 26 Jan 2014, 23:10
tbworld tbworld is offline
 
Join Date: Oct 2008
Originally Posted by Zachery View Post
There are tons of safe ways to do this, however most of them seem to have a rather large amount of overhead that complicates the entire matter. Esp if someone just wants to store their attachments offsite to avoid "downtime" when moving hosts.
I have to agree with @Zachery here. You would know if you absolutely needed a setup like this. The guy that has a cheap host and does not have the storage for attachments, this is not a work-around. No money/time will be saved with this kind of an arrangement in the long-run. In most cases we conjure up these ideas and their complexities, but are they really needed? Who is going to handle the support when things go awry? The question is never can it be done.

I use a setup like this, since two or three high resolution images are usually attached to every post, and during the week we have around 500 posts per day with pictures. We unfortunately had to use this kind of setup, but I would not carry over the complexity we added -- and have to maintain -- to the other boards I run.
Reply With Quote
  #11  
Old 27 Jan 2014, 00:12
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Real name: Richie
I think it would increase load times as well having to pull your data from a remote host instead of the local server.
__________________

Let us take care of your forum, seo, seo reports, maintenance, what ever you need.

Reply With Quote
  #12  
Old 27 Jan 2014, 00:28
tbworld tbworld is offline
 
Join Date: Oct 2008
Originally Posted by RichieBoy67 View Post
I think it would increase load times as well having to pull your data from a remote host instead of the local server.
We had to make quite a few adjustments, an advancement to the post cache and a specialized attachment cache -- just to name a few. We were forced to this method due to large attachment processing and manipulating. The average vBulletin owner has really no need for this kind of complexity, maybe a large specialty photo site. I spoke out because I thought @Zachery needed some support on his view/statements. This question seems to pop-up now and then, and I figured I could add some insight.

Last edited by tbworld; 27 Jan 2014 at 00:42.
Reply With Quote
  #13  
Old 27 Jan 2014, 01:01
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Real name: Richie
Originally Posted by tbworld View Post
We had to make quite a few adjustments, an advancement to the post cache and a specialized attachment cache -- just to name a few. We were forced to this method due to large attachment processing and manipulating. The average vBulletin owner has really no need for this kind of complexity, maybe a large specialty photo site. I spoke out because I thought @Zachery needed some support on his view/statements. This question seems to pop-up now and then, and I figured I could add some insight.
I wasn't questioning you or anything. I was just adding in response to the op. I'm sure you had reasons and it sounds like you made it work well.
__________________

Let us take care of your forum, seo, seo reports, maintenance, what ever you need.

Reply With Quote
  #14  
Old 27 Jan 2014, 04:30
tbworld tbworld is offline
 
Join Date: Oct 2008
Originally Posted by RichieBoy67 View Post
I wasn't questioning you or anything. I was just adding in response to the op. I'm sure you had reasons and it sounds like you made it work well.
No worries, I took your response as the good-natured intent that you meant. I am sorry if my response in anyway indicated that I did not. I try to write my responses for anyone reading the thread, the idea was to add additional helpful content that I decided to append to the end of the post. Sorry, I think I confused you in my effort to write to the general audience.

After reading it over, I should have started my reply with "I agree with you". I was really trying to explain why I needed such a monster and that for most people it is total overkill. I did not even get into the fact that we run a modified version of PHP where we run our caches in a common static memory module, so they do not have to be refreshed or rebuilt every page. All of this was done just to get back some of the performance loss you were indicating.

Your input is always welcome.

Last edited by tbworld; 30 Jan 2014 at 11:02.
Reply With Quote
  #15  
Old 27 Jan 2014, 17:43
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Real name: Richie
It's all good friend! Not like I was mad or anything. All good points and good discussion.
__________________

Let us take care of your forum, seo, seo reports, maintenance, what ever you need.

Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 14:21.

Layout Options | Width: Wide Color: