EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Upload file

Also by EldoS: CallbackFilter
A component to monitor and control disk activity, track file and directory operations (create, read, write, rename etc.), alter file data, encrypt files, create virtual files.
#37261
Posted: 07/18/2016 08:53:18
by Romana Romandini (Standard support level)
Joined: 10/22/2013
Posts: 34

Hello,
if during a file upload the operation is interrupted (eg: by lost connection) the file is added to the cloud space anyway but it's, obviously, corrupted.
Is it possible to prevent such case or can you prevent this (without inserting a file)?
Thanks in advance.
#37263
Posted: 07/18/2016 09:13:27
by Alexander Ionov (EldoS Corp.)

Thank you for the question.

Could you please clarify what Cloud service are your talking about?

Generally, it's not possible because an empty file is created first, then the file data is uploaded to the server. So, it's not possible to delete the file after the connection lost.


--
Best regards,
Alexander Ionov
#37264
Posted: 07/18/2016 09:13:37
by Eugene Mayevski (EldoS Corp.)

What is your vision of such prevention? What exactly would you like to get, i.e. how should the component behave in your opinion?


Sincerely yours
Eugene Mayevski
#37268
Posted: 07/18/2016 11:10:45
by Romana Romandini (Standard support level)
Joined: 10/22/2013
Posts: 34

Upload and download for One Drive-Google Drive-Dropbox-Windows Azure-Amazon S3

I think that should not insert the file until the transaction is complete.
Is it wrong or not possible?
#37270
Posted: 07/18/2016 11:20:17
by Eugene Mayevski (EldoS Corp.)

Quote
Romana Romandini wrote:
I think that should not insert the file until the transaction is complete. Is it wrong or not possible?


As Alexander said above, this is not possible. This is actually not possible even on the local filesystem unless some transactional mode is used.


Sincerely yours
Eugene Mayevski
#37271
Posted: 07/18/2016 11:45:54
by Alexander Ionov (EldoS Corp.)

Actually, some Cloud APIs allow to upload data without creating an empty file first. But not all.

So we decided to implement the same operational model as the one used for files on the local filesystem: firstly, you create a file, then upload its data. If an error occured, you have to delete the file manually.


--
Best regards,
Alexander Ionov
#37272
Posted: 07/18/2016 12:01:21
by Ken Ivanov (EldoS Corp.)

Romana,

In fact, you can implement such error handling yourself by uploading the file under a temporary name, and then renaming it if the upload succeeds. Still, indeed transactioning the upload operation into Cloud is not that simple (e.g. you should be prepared to the failure of the renaming operation as well), so it should be addressed carefully and finely according to the requirements you need to satisfy.

Ken
#37277
Posted: 07/20/2016 04:24:02
by Romana Romandini (Standard support level)
Joined: 10/22/2013
Posts: 34

Ok,
no problem, thank you for all
Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.

Reply

Statistics

Topic viewed 811 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!