*

Brent

  • **
  • 5 posts
Change Uploads Directory
« on: May 13, 2022, 11:02:40 PM »
How do I change the uploads directory/folder from /var/www/html/oc-content/uploads to a folder on another hard drive or SSD (solid state drive)?

It is not a good practice to have the uploads folder on the same system drive where OsClass resides, due to data capacity issues.
« Last Edit: May 13, 2022, 11:13:24 PM by Brent »

*

MB Themes

Re: Change Uploads Directory
« Reply #1 on: May 14, 2022, 08:36:28 AM »
I would recommend to check amazon s3 plugin that solve this question (not sure in what state it is)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Brent

  • **
  • 5 posts
Re: Change Uploads Directory
« Reply #2 on: May 14, 2022, 10:28:51 AM »
@MB Themes
Thanks for the reply. I have OsClass installed on my own server. So, I am not using any Amazon service. I just need to configure OsClass to use another uploads folder/path on a secondary SSD/hard drive.

The user interface in OsClass does not appear to offer the ability to change the uploads path. So, this must be done in the core code.
« Last Edit: May 14, 2022, 10:32:57 AM by Brent »

*

MB Themes

Re: Change Uploads Directory
« Reply #3 on: May 14, 2022, 11:06:02 AM »
Plugin gives you idea how to do it, customize it and address to your own folder.
Osclass itself does bot have such options, but does not mean it cannot be done via plugin.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Brent

  • **
  • 5 posts
Re: Change Uploads Directory
« Reply #4 on: May 14, 2022, 06:49:29 PM »
@MB Themes

Thank you. I will look at the plug-in and try the options there.

Basically, I need to change /driveX/var/www/html/oc-content/uploads to:

/driveY/var/www/html/oc-content/uploads

Both hard drives/SSDs are in the same physical server.
« Last Edit: May 14, 2022, 06:52:24 PM by Brent »

*

MB Themes

Re: Change Uploads Directory
« Reply #5 on: May 15, 2022, 09:14:23 PM »
@Brent
Simpler for you...
With uploads I was never playing with that.
With resource targeting to correct URL it is simpler, as they use filters where you can update url on the fly.

Maybe, if you define uploads path in config.php, something could work, but it might need updates in several plugins that should not be super complicated.
Code: [Select]
define('UPLOADS_PATH', 'some-path/dot.com/with/uploads/');
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Brent

  • **
  • 5 posts
Re: Change Uploads Directory
« Reply #6 on: June 03, 2022, 11:51:23 PM »
Thank you. I was getting ready to change the config.php file and the "define" statement. I will post any progress or success.

*

MB Themes

Re: Change Uploads Directory
« Reply #7 on: June 06, 2022, 11:48:04 AM »
Looking forward ;)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

mwindey

  • *****
  • 485 posts
Re: Change Uploads Directory
« Reply #8 on: June 06, 2022, 02:04:37 PM »
Agree on that... Please keep us updated 8)