• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

Using root directory for images

chevuser1

Chevereto Member
Hi there,

Just a quick question:

Would there be any issues, now or in the foreseeable future, with using the root directory as the image directory. I mean, instead of storing your images in /images or /i, for example, could they simply be stored in / ?

I have a very short URL, say xx.xx, and instead of images being saved like http://xx.xx/i/3kdf4.jpg, I'd like them saved like http://xx.xx/3kdf4.jpg. Something like Imgur, I guess (I know Imgur uses multiple servers, i.e. images are saved in http://i.imgur.com instead of http://imgur.com).

If the site got large I suppose this could become an issue, even if just with regards to tidiness?

Thanks.
 
check in includes/config.php

find "$config['folder_images']" and "$config['folder_thumbs']"
 
I've been wanting that as well. Not root directory per se but a fix to somehow remove the actual location from the URL, as well as remove the viewer "?v=" from viewer links and just have the image name without the extension instead.

I tried using root directory the other day to see if it'd work, and it just didn't for some reason.
 
nmt12 said:
check in includes/config.php

find "$config['folder_images']" and "$config['folder_thumbs']"

Yep, I've seen that, and currently I have it as /i and /i/t, respectively. What I was wondering is would / for images work.

jay said:
I've been wanting that as well. Not root directory per se but a fix to somehow remove the actual location from the URL, as well as remove the viewer "?v=" from viewer links and just have the image name without the extension instead.

I tried using root directory the other day to see if it'd work, and it just didn't for some reason.

I've seen a thread or two of yours where you were asking about that, alright.

Hmmm, so / didn't work for you. Ah well, I guess /i/ in the URL doesn't really make it that much longer. I'll have to live with it, until a future version/mod can fix it I guess.

Thanks for the replies guys.
 
Is not necessary to have short urls for uploaded images, it has no sense. Before you start shouting me that short urls are needed I must say that yes, they are needed but imo only on the viewer.

In 2.1 viewer will be like ?v=asd34 without the extension and that ID will be the ID of the image on the dB. So yep, viewer can be something like /v/asd34 or even /asd34 if you trick it using htaccess and mod_rewrite. But the images MUST be stored using datefolders because you can't stress the file system storing a zillion images in just one folder, is just stupid and unnecessary.

You are confusing things, files always must be stored in a folder structure. This means that files have a pretty long url but that doesn't matter because the link that you use to share it is the viewer link which also helps you to include ads, info, etc.

There is no need to have short url for the uploaded files. Also you can setup a custom short url service but... why?

But above all, yes.. You can do that if you want. Is not recommended to have the images on the root folder but It can be done if you really have your reasons to do it.
 
Back
Top