Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2648
  • Last Modified:

File Upload control Default path for Browse button

Hi,

I am working with a File Upload Control.

When i hit the browse button, can i set a default path for it?

Note: I want default path for Brwse button not  Save as.

 

Thanks
.
0
shahjagat
Asked:
shahjagat
1 Solution
 
binaryevoCommented:
The server cant know the file structure of the client therefore, its highly unlikely you can get this to work (to my knowledge) unless of course there is some javascript that can get the file structure for you.  Anybody else got an idea of how to make this work?
0
 
shahjagatAuthor Commented:
hi binaryevo,

Is it possible to filter the types of file that we are uploading?
For ex., i want to ulpoad only .txt file or a .zip file nothing else.
Is it possible through upload control?
I do not see a filter property for this control.



0
 
binaryevoCommented:
Yes that is much easier... I would personally do it the way this article is describing it:

http://stackoverflow.com/questions/71944/how-do-i-validate-the-file-type-of-a-file-upload
0
NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

 
Ramkisan JagtapLead DeveloperCommented:
0
 
coagantusCommented:
u can check the file extension in .cs class before uploading or using the javascript.
0
 
shahjagatAuthor Commented:
Thanks
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now