[SOLVED]upload control check if file exists before upload

Answered
0
0

Hi,

with the Upload control, there is a way to check if the file exists before complete upload of the file?

regards

Cristian Zerbinati

  • You must to post comments
Best Answer
0
0

Didn’t think of that 🙂

It may be possible to enhance the Upload control with a BeforeUpload or Uploading cancelable event that would allows an app to receive the names of the files before they are uploaded. I’ll get back to you, could be a derived class or maybe an enhancement in Wisej. Logged as enhancement #2396.

  • You must to post comments
0
0

Hi Luca,

yes I just use a hidden upload control by a Button, but how I can get the name of the selected files, before upload them?

is this possibile?

bye

  • You must to post comments
0
0

You can’t do it using the Upload control directly since it uploads the file first, it’s just the way it works. But you can use a hidden Upload control and click your button, check the file, and then call upload1.UploadFiles(); It will trigger the client upload.

  • You must to post comments
0
0

Hi Levie,

I explain myself better.
if I upload files with the Upload control, it starts uploading immediately after the OK, is that right?
Is there any way to know if the file on the server exists, but before starting the file upload.

it would be useful for example to ask to overwrite the file without waiting for the whole upload

best

Cristian

  • You must to post comments
0
0

Hi Cristian,

I’m not sure I entirely understand what you mean. Could you please explain the issue a bit more?

You can use the Upload Control’s “Progress” event to get the current status of the upload and to verify that the “Total” number of bytes to upload is > 0.

Please let me know!

Best,

Levie

  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.