File Upload control Default path for Browse button

Posted on 2011-09-21
Last Modified: 2012-06-27

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.


Question by:shahjagat
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 14

Expert Comment

ID: 36575777
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?

Author Comment

ID: 36576136
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.

LVL 14

Accepted Solution

binaryevo earned 250 total points
ID: 36576481
Yes that is much easier... I would personally do it the way this article is describing it:
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

LVL 12

Expert Comment

by:Ramkisan Jagtap
ID: 36586651

Expert Comment

ID: 36587562
u can check the file extension in .cs class before uploading or using the javascript.

Author Closing Comment

ID: 36718825

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
c#, datatable, aspx 4 53
Validation for Passport expiry in 2 32
Office 365: Assigning MailboxPlan to a mailbox 8 72
Easiest intro into .NET CORE? 2 34
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK ( for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question