473,382 Members | 1,204 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Form based FILE-UPLOAD help

Hello Everyone,

Is there any way to have the server specify exactly which file the
form is to upload rather then letting the user browse their filesystem
to select an arbitrary file?

Thanks
Jul 20 '05 #1
3 2072
DiscoStu wrote:
Is there any way to have the server specify exactly which file the
form is to upload rather then letting the user browse their filesystem
to select an arbitrary file?


No, you can't tell my browser to upload /etc/passwd
or /var/sql/myPrivateDatabaseOfContacts.

(OK OK, you can use the value attribute like any other input. Opera will
shout security warnings at the user, everything else will ignore it)

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Jul 20 '05 #2
First of all, unless you discover a browser vulnerability you cannot
make the browser upload a local file of your choice to your server. If
you need a specific file uploaded to you, you can check the input file
and display a warning that the user is not uploading the correct file.
It's the user, however, who has the final word. He has to hit the
upload button. :-)

Svetlozar Aleksiev,
Product Manager, Svetlozar Online Ltd.

__________________________________
Svetlozar Online Ltd.
24/7 Hotline: +359 887 87-89-86
Web Site: http://www.svetlozar.com
Jul 20 '05 #3

"DiscoStu" <gr*********@hotmail.com> wrote in message
news:84**************************@posting.google.c om...
Hello Everyone,

Is there any way to have the server specify exactly which file the
form is to upload rather then letting the user browse their filesystem
to select an arbitrary file?


Consider this: Where, on a Mac, would the file "c:\mydir\myfile.txt" be?

Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Frank Einstein | last post by:
Looking for a tool that can edit an XML file in a browser. The basic requirement is that the XML file is rendered as an HTML form with editable fields (including add/delete, preferably in...
7
by: Ed Lai | last post by:
A few weeks ago I have the idea of converting XML instance data to a HTML form, using tags as the label and the resulting form can be used to edit the XML data. So I started to play around with it,...
11
by: Jozef | last post by:
I have some old code that I use from the Access 95 Developers handbook. The code works very well, with the exception that it doesn't seem to recognize wide screens, and sizes tab controls so that...
13
by: david | last post by:
I can not figure out what is the problem that I can protect ASP.NEt form resource but not some other type of files, for example, images. All my aspx forms located in Demo folder and image files...
2
by: lgbjr | last post by:
Hi All, I see that this topic was discussed back on august 23rd, but I didn't see a real answer. I have a VB.NET MDI app. A particular menu action on the MDI parent is to call an OpenFileDialog...
0
by: Greg | last post by:
The intermediate resources file has name: <Root Namespace>.<form .resx file name>.resources (e.g. App1.Form1.resources) By the time this standard form code executes: ...
14
by: AtomicBob | last post by:
I have been given an interesting task: Make a page with a single form field, which is to take a name (first and last), and regardless of case or whether there is a space between the first and...
6
by: Tim Marshall | last post by:
Does anyone know if Stephen Leban's ConvertReportToPDF for converting mdb reports to pdf can be done for a print preview of a form? A major Access application I've developed and use displays an...
2
by: ypper2001 | last post by:
Here is my "problem": I have a form that is based on a lot of different querys,the result of the querys shown in the form are based one the input given on the form, this form is in two versions and...
2
by: ravisuguna | last post by:
Hi, I have a php page which has some checkboxes ,textfields and values.If I select a checkbox ,a particular value will be displayed in a textfield.I have a "go"button in the same page.I want the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.