Change location of images

Permalink
Hi,

Currently images are located in /files/ in the root directory is it possible to host the images else where?

for example currently hosted onhttp://www.domain1.com/files/ and want them to be located fromhttp://www.domain2.com/files/

Other question is how does the /files/ structure work? what do all the numbers mean?

for example Wordpress stores there files in /uploads/ then the structure has the year in the uploads folder /uploads/2016/[images placed here]

and Concrete5 has /files/4557/ and then another random folder.

Thanks in advance.

 
powdersky replied on at Permalink Reply
Hi,

Does anyone have any suggestions for this?

Thanks,
Mainio replied on at Permalink Reply
Mainio
If you're using 5.7, check into file storage locations:
http://documentation.concrete5.org/developers/working-with-files-an...

If you're using 5.6, you probably need some core hack.
powdersky replied on at Permalink Reply
Hi Mainio,

Thanks for this.

Yes unfortunately using 5.6, do you know of a hack that I could use?

Thanks,
Max
Mainio replied on at Permalink Reply
Mainio
Probably there isn't any existing particular hack available for this.

You'll need to dig into the core code or post this as a job to the jobs board if you're not able to do it by yourself:
https://www.concrete5.org/community/forums/jobs1/...

We can also probably help you with that, just PM me with a bit more information on what needs to be done and I'll provide you with a quote.
JohntheFish replied on at Permalink Reply
JohntheFish
Some basic support for an alternate storage location was in 5.6, but its not as adaptable as in 5.7.
http://legacy-documentation.concrete5.org/editors/dashboard/system-...
powdersky replied on at Permalink Reply
Hi guys,

thanks for this, will dig a bit deeper as not sure if file locations will work as we want them to on 5.6.

Mainio will let you know if need a quote from you.

Thanks