• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2844
  • Last Modified:

File Upload control Default path for Browse button


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.


1 Solution
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?
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.

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Ramkisan JagtapLead DeveloperCommented:
Hamid HassanCommented:
u can check the file extension in .cs class before uploading or using the javascript.
shahjagatAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

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