Solved

File Upload control Default path for Browse button

Posted on 2011-09-21
6
2,191 Views
Last Modified: 2012-06-27
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
Comment
Question by:shahjagat
6 Comments
 
LVL 14

Expert Comment

by:binaryevo
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?
0
 

Author Comment

by:shahjagat
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.



0
 
LVL 14

Accepted Solution

by:
binaryevo earned 250 total points
ID: 36576481
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
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
0
 
LVL 3

Expert Comment

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

Author Closing Comment

by:shahjagat
ID: 36718825
Thanks
0

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 (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). 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 (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. 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