Loading ...

How to re-upload a file in ASP.NET

Who is online?  0 guests and 1 members
home  »  forums   »  asp.net topics   »  getting started / general asp.net   » How to re-upload a file in ASP.NET

How to re-upload a file in ASP.NET

Posts under the topic: How to re-upload a file in ASP.NET

Posted: 9/17/2010

Lurker 170  points  Lurker
  • Joined on: 9/16/2010
  • Posts: 34

Hi Guys,

 

Can any one  tell me how can we re-upload a file

In one of our project we are getting this problem. If once the file is uploaded and if we want to download that

file and modifey it and re-upload it.We are not able to edit that file and also not able to re-upload that file in to

the server. Can any one please tell me the solution for this problem as early as possible because project had got

strucked at this place. So, kindly tell me the solution guys.


Posted: 9/17/2010

Contributor 2237  points  Contributor
  • Joined on: 9/24/2009
  • Posts: 172

vamsidhar said:

user="vamsidhar janjanam"]

Hi Guys,

 

Can any one  tell me how can we re-upload a file

In one of our project we are getting this problem. If once the file is uploaded and if we want to download that

file and modifey it and re-upload it.We are not able to edit that file and also not able to re-upload that file in to

the server. Can any one please tell me the solution for this problem as early as possible because project had got

strucked at this place. So, kindly tell me the solution guys.

 

Which control you are using for uploading files?


Posted: 9/17/2010

Lurker 170  points  Lurker
  • Joined on: 9/16/2010
  • Posts: 34

Multiple file upload control


Posted: 9/17/2010

Contributor 2237  points  Contributor
  • Joined on: 9/24/2009
  • Posts: 172

vamsidhar said:

user="vamsidhar janjanam"]

Multiple file upload control

use this link.


Posted: 9/17/2010

Lurker 170  points  Lurker
  • Joined on: 9/16/2010
  • Posts: 34

ya i had did code but the think is if once had upload in to the server when we download it we are not able to modify the file and also again we can not upload the file to the server again after editing.

 

 

this is the main problem


Posted: 9/17/2010

Contributor 2841  points  Contributor
  • Joined on: 11/29/2008
  • Posts: 62

Hi,

I think you saving the Image with the "Name of the Image",in this case first you need  to delete the Image from the server, after that re-upload the image.

OR
You can save Image Name with GUID.


Posted: 9/17/2010

Lurker 170  points  Lurker
  • Joined on: 9/16/2010
  • Posts: 34

Hi

 

Actually the work is client will send us audio files we should download them and type them to word document. After doing every thing  work we are again uploading the Doc file to client in server. when client had downloaded the file and wants to modify some name or anything he not able to edit that document.When again asking us to send the file with this modifications then after everything work we are not able to upload the file in to the server.


Posted: 9/17/2010

Professional 8505  points  Professional
  • Joined on: 5/3/2010
  • Posts: 391

vamsidhar said:

user="vamsidhar janjanam"]

Hi

 

Actually the work is client will send us audio files we should download them and type them to word document. After doing every thing  work we are again uploading the Doc file to client in server. when client had downloaded the file and wants to modify some name or anything he not able to edit that document.When again asking us to send the file with this modifications then after everything work we are not able to upload the file in to the server.

Can you how us how you do that? And, also - do you get any error message? If yes, what error message?

That way we might help you by correcting your code or will have clearer look at the issue.

If you use FileUpload control and use the SaveAs(fileName) method, if the file already exists on the server, it will get overwritten.

As per the editing of the document, it might be forms-protected or read-only, so that you are not able to make changes.


Posted: 9/17/2010

Lurker 170  points  Lurker
  • Joined on: 9/16/2010
  • Posts: 34

Ya 2maro morning i will let you know the whole process. So, that you all guys can know the process how it is going on and can help me out of this problem.


Posted: 9/25/2010

Lurker 192  points  Lurker
  • Joined on: 10/23/2009
  • Posts: 20

 provide the the error message  and the code where you are getting the error message so that

we can solve it and give you clear cut solution.

 


Page 1 of 1 (10 items)