Pictures upload in a self made folder

Permalink
hi there

is there any possibility that i can upload images in a way that there is not always a path like that:
/files/6225/3658/9268/image.jpg
/files/4555/7532/8863/image1.jpg

rather like:
files/slider-images/image.jpg
files/slider-images/image1.jpg
etc?

i need to have the paths for service worker topics...

many thanks everybody!

View Replies:
mnakalay replied on at Permalink Reply
mnakalay
Not if you upload them through Concrete5's file manager.

But you can upload them manually directly to your server in any folder you want. You won't be able to use any file manager related stuff with them though.
eivissa89 replied on at Permalink Reply
thanks for feedback!
so that means it‘s not possible to use it e.g. in a slider add-on when it‘s directly uploaded in a ftp folder?!
weyboat replied on at Permalink Reply
weyboat
Correct.
The reason is that you need to upload a file through the file manager so that file references to that file can be written to the database.
Without database references the file will not be discover-able.
eivissa89 replied on at Permalink Reply
pity...
but anyway thanks both of you!
Cahueya replied on at Permalink Reply
Well it is technically possible. You could build a Image Slider that pulls the images from hardcoded filename like .../images/image1.jpg .../images/image2.jpg and just overwrite these files when you upload new images.

And this could all be done through FTP. Of course this would defeat all the upsides of the file manager features and work like hard-coded html.
eivissa89 replied on at Permalink Reply
thanks for the answers!
so i think the file manager does make sense anyway BUT if you say it‘s in the database then I am sure there‘s a way to pull out the paths?
Cahueya replied on at Permalink Reply
To pull out the paths under which conditions? Like, are all uploaded images going to be part of that slider?

What is the purpose? Do you need other people to be able to upload without accessing the dashboard? This can be done by uploading to the /application/files/incoming folder but those files still need to be added through the file manager to reference them in the database.
eivissa89 replied on at Permalink Reply
actually i just need the path of the uploaded pictures.
the paths should be as easy as possible – just an easy way to copy these paths of the images...
mnakalay replied on at Permalink Reply
mnakalay
if you just need the path you can get them manually from the file manager. Just click on an image, click properties and you'll have information about the image including the path.

If you need to do it programmatically, just look at the core slider block and you'll see how to do it
eivissa89 replied on at Permalink Reply
it's roughly for 400 images... so won't do it manually.
mnakalay replied on at Permalink Reply
mnakalay
So your best bet is to put all the files in a fileset than through code automatically grab all images in the fileset and for each get the path.

Here's a free gallery that does that so you can easily see how to grab a fileset with all its files and get the paths from there:https://www.concrete5.org/marketplace/addons/simple-gallery...
eivissa89 replied on at Permalink Reply
will try it.

many thanks!