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!
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!
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?!
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?!
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.
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.
pity...
but anyway thanks both of you!
but anyway thanks both of you!
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.
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.
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?
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?
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.
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.
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...
the paths should be as easy as possible – just an easy way to copy these paths of the images...
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
If you need to do it programmatically, just look at the core slider block and you'll see how to do it
it's roughly for 400 images... so won't do it manually.
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...
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...
will try it.
many thanks!
many thanks!
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.