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
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:
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

In my previous two articles we discussed Binary Serialization ( and XML Serialization ( In this article we will try to know more about SOAP (Simple Object Acces…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

762 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now