Load files from folder and delete after

Patrick

Client
Joined
Jul 30, 2016
Messages
68
Reaction score
2
Points
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
Joined
May 6, 2015
Messages
2,190
Reaction score
2,209
Points
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
Staff member
Joined
Nov 5, 2014
Messages
22,829
Reaction score
6,040
Points
113

Users Who Are Viewing This Thread (Total: 1, Members: 0, Guests: 1)