Author Topic: Delete File After Completed Uploading  (Read 6413 times)

Atakartal

  • Guest
Delete File After Completed Uploading
« on: 30-05-2016, 10:51:22 »
Hi, can you make that delete files on hdd after completed uploading?
« Last Edit: 30-05-2016, 11:29:20 by z_o_o_m »

Offline z_o_o_m

  • Administrator
  • Hero Member
  • *****
  • Posts: 7 228
  • just ask me ;)
    • File & Image Uploader
Re: Delete File After Completed Uploading
« Reply #1 on: 30-05-2016, 11:29:15 »
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.

Atakartal

  • Guest
Re: Delete File After Completed Uploading
« Reply #2 on: 30-05-2016, 12:40:37 »
How do i make this script will can delete? Have any example script?

Offline z_o_o_m

  • Administrator
  • Hero Member
  • *****
  • Posts: 7 228
  • just ask me ;)
    • File & Image Uploader
Re: Delete File After Completed Uploading
« Reply #3 on: 30-05-2016, 15:45:34 »
I don't have any examples. You can execute any program or (.bat script) which then can delete such file.

Offline venantius

  • Member
  • *
  • Posts: 8
Re: Delete File After Completed Uploading
« Reply #4 on: 18-08-2016, 10:14:42 »
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.



Offline nicenero

  • Member
  • *
  • Posts: 11
Re: Delete File After Completed Uploading
« Reply #5 on: 24-09-2017, 09:53:30 »
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
Using Z-O-O-M File & Image Uploader with wine and Debian

Offline z_o_o_m

  • Administrator
  • Hero Member
  • *****
  • Posts: 7 228
  • just ask me ;)
    • File & Image Uploader
Re: Delete File After Completed Uploading
« Reply #6 on: 24-09-2017, 13:16:50 »
It is the same on Windows. You just used command line "del" command.

Offline Zontir

  • Member
  • *
  • Posts: 27
Re: Delete File After Completed Uploading
« Reply #7 on: 25-09-2017, 03:37:54 »
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
« Last Edit: 25-09-2017, 03:40:17 by Zontir »

Offline z_o_o_m

  • Administrator
  • Hero Member
  • *****
  • Posts: 7 228
  • just ask me ;)
    • File & Image Uploader
Re: Delete File After Completed Uploading
« Reply #8 on: 25-09-2017, 16:22:26 »
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.

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Human verification ... What is the name of my program? File & Image ********?: