SimpleFTPServer icon indicating copy to clipboard operation
SimpleFTPServer copied to clipboard

Some questions to improve usage

Open Discorez opened this issue 2 years ago • 1 comments

Hello! Thank you very much for the useful class, in most cases it works great. I wanted to ask if there is no possibility to add two functions to the class:

  1. Is it possible to determine the size of the file uploaded to the server to show the percentage of completion? If I download a file from the server, then there is no problem and I get the size at FTP_DOWNLOAD_START. But with FTP_UPLOAD_START this size is always 0.

  2. If I upload a file to the server, but during the execution the download is interrupted (the client canceled or the connection was broken), then a part of the file remains on the SD card, which is not complete and can be deleted. Is it possible to somehow track this event so that such an incomplete file can be deleted?

Regards, Oleg.

Discorez avatar Jan 21 '23 22:01 Discorez

Hi Oleg, for the first enhancement, I don't know, but I'm going to check. The second It's an interesting features, and probably I'm going to add It. Thanks Renzo

xreef avatar Jan 23 '23 14:01 xreef