Forum - File & Image Uploader
English (Global) => Requests => Completed => Topic started by: Atakartal on 30-05-2016, 10:51:22
-
Hi, can you make that delete files on hdd after completed uploading?
-
No because it may delete incorrectly uploaded files which need to be reuploaded. You can setup and execute own script in Settings - Events if you want.
-
How do i make this script will can delete? Have any example script?
-
I don't have any examples. You can execute any program or (.bat script) which then can delete such file.
-
How do i make this script will can delete? Have any example script?
windows os isn't easy to use when you dealing with automation. you need create own application.
knowledge of language programming is required which means you also have to install other applications needed.
but in linux os, you don't need create or installing application to implement what you want.
all the necessary components have been provided since you finish installing the os.
create a bash script:
tailing (using tail) and maybe selecting pattern (using grep) the last log file of zoom file uploader to see what the files/directory which are already uploaded. then using tailing and grep output, search for files or directory then delete it.
find /path-to-files/$filename -type f -delete
or
find /path-to-directory/$directoryname -type f -delete
for automatic search and delete already uploaded file/directory you can set cronjob
NB: zoom file uploader also works well on linux through wine.
-
can you please post the "delete-script" or send it to me? i have tryed it many times and with your strategy but I can´t get it to work.
big thx in advance
-
It is the same on Windows. You just used command line "del" command.
-
Hi, can you make that delete files on hdd after completed uploading?
It would be really great that if the upload fails this upload it will be uploaded normally, and if the program cannot upload the file it will stay on the hard disk to upload it manually.... But if the file is uploaded correctly delete it.... It would be a super cool option.
I could donate again if I had this option. :D
-
You technically can delete files after upload. There are just some serious reasons I do not offer it
- if you upload the same file multiple times, my program does not know if it was already uploaded to all sites (complicated to check whole queue etc.)
- if the file is uploaded but for whatever reason the server does not save it correctly. It is not correctly uploaded and the file would be deleted.