I want following type of functionality
There are two users A
and B
both are visiting same page
This page has a button(Send File) .
When A
clicks on button an Open Dialog
box should appear
When A
selects a file from Open Dialog
box then there should be a link appear on B
’s page containing file name
When B
clicks on link, a SaveAs
dialog should appear and after giving name and path file download should start.
Any kind of help in this context will be appreciated !
The open dialog is acheived with the html input: <input type="file">
The save as dialog is acheived with the html anchor: <a href="www.myserver.com/download.aspx?filename='the file'">
After user A selects a file, you either use AJAX or the form onsubmit to upload the file via an upload.aspx page that you create.
On user B's machine, you use AJAX to call an updatefilelist.aspx page which returns the list of files available. Once user A's new file has been uploaded and saved on the server, the next ping from user B's AJAX call to updatefilelist.aspx will update the list shown on his screen to include the new file.
Clicking on the file calls the download.aspx page with the desired filename - you need to set Response.ContentType
and Response.AddHeader("Content-Disposition", "attachment:filename=""" & IO.Path.GetFileName(Request.QueryString("filename")) & """")
here. The save as dialog will then automatically pop up.