Page 1 of 1
Folder to store images and pdfs
Posted: Fri Jan 03, 2014 3:49 am
by altralaser
Hi,
I have some png files which I would include into my website. For that I'm using the <img/> tag. And I would also include a few pdf files. For that I'm using the <a> tag.
Now I want to know whether there's a special folder in which I should store these documents? Or can I simply create a path called "images" and another path called "pdffiles" under the root folder?
I will upload the files only via FTP, so no upload function of the CMS is needed.
Thanks in advance!
Re: Folder to store images and pdfs
Posted: Fri Jan 03, 2014 4:52 am
by chandra
You can do what you want

.
But think it's better to use the CMSMS scheme (images to /uploads/images and pdf to /uploads/pdf).
You don't know what you will do in the future on your website and some modules need this scheme.
Re: Folder to store images and pdfs
Posted: Fri Jan 03, 2014 5:10 am
by JohnnyB
As chandra said, you can do whatever works best for you.
Something I do differently is if the image will be used as part of a template, I use a directory called /images/ that is not inside of the /uploads/ directory. I do the same with any external CSS and Javascript files -- I keep them out of the /uploads/ directory.
Re: Folder to store images and pdfs
Posted: Fri Jan 03, 2014 6:42 am
by altralaser
OK and is there also a scheme for zip or exe files?
Re: Folder to store images and pdfs
Posted: Fri Jan 03, 2014 6:49 am
by chandra
JohnnyB wrote:
Something I do differently is if the image will be used as part of a template, I use a directory called /images/ that is not inside of the /uploads/ directory.
Yeah, was the scheme in previous CMSMS versions and make sense for me cause editors should not have access to template related files.
Re: Folder to store images and pdfs
Posted: Fri Jan 03, 2014 6:50 am
by chandra
altralaser wrote:is there also a scheme for zip or exe files?
/uploads/zip
/uploads/exe

Re: Folder to store images and pdfs
Posted: Fri Jan 03, 2014 5:46 pm
by Wishbone
I put template images in uploads/images/templates, and template JS files in uploads/images/js .. I try to keep everything non-cmsms in /uploads, so if I have to re-install CMSMS (hacked, corrupted), I just remove everything that's not in /uploads and re-install.. Keeps everything organized.