Solved

File Upload control Default path for Browse button

Posted on 2011-09-21
6
2,410 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
[X]
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
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
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
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

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 asp.net 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 (http://www.microsoft.com/en-us/download/details.aspx?id=27876) 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