Load files from folder and delete after

Patrick

Client
Регистрация
30.07.2016
Сообщения
68
Благодарностей
2
Баллы
8
Hello, I want prepare my template to upload random picture from folder, and delete file after. So each time it read block it check files in folder then pick random, upload, delete. Can someone tell me how to do it easiest way? :-) Thanks
 

orka13

Client
Регистрация
07.05.2015
Сообщения
2 163
Благодарностей
2 163
Баллы
113
Hi.
1. Save all paths to your photo files in *.txt file. You can do it manuall or in Zenno.
2. In your Zenno templates bind this file to list.
3. Take random string from list with deleting it.
4. Upload file using path from string.
5. Dele file.
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 218
Благодарностей
5 843
Баллы
113

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)