vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Upload attachment to external server (https://vborg.vbsupport.ru/showthread.php?t=299284)

tareqbd 06-19-2013 03:50 PM

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.

cravendale 07-01-2013 09:19 PM

This would be a great idea.

Zachery 07-01-2013 10:50 PM

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.

tareqbd 07-07-2013 01:17 PM

Quote:

Originally Posted by Zachery (Post 2431600)
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.

Zachery 07-08-2013 02:01 PM

That sounds like a bad idea.

vbresults 07-09-2013 02:42 PM

There is a safe way to implement this idea. How likely anyone is to make it for vBulletin.org is another question.

Zachery 07-09-2013 07:20 PM

Quote:

Originally Posted by vbresults (Post 2432904)
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.

Manoel J?nior 01-26-2014 09:04 PM

I need this

ozzy47 01-26-2014 09:25 PM

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.

tbworld 01-26-2014 10:10 PM

Quote:

Originally Posted by Zachery (Post 2432953)
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.


All times are GMT. The time now is 08:37 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01108 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete