FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.

FutureQuest, Inc.
Go Back   FutureQuest Community > General Site Owner Support (All may read/respond) > PHP, Perl, Python and/or MySQL
User Name
Password  Lost PW

Reply
 
Thread Tools Search this Thread Display Modes
Old 11-03-1999, 08:28 AM   Postid: 43293
apm
Registered User

Forum Notability:
10 pts: User-friendly
[Post Feedback]
 
Join Date: Jan 1999
Location: Madras
Posts: 98
FIles (uploading)

Again,

I have read the manual and documentation on this..


What i dont understand is if i want a user to upload a file and i gave him a text box to to type the file name in which directory will he store the (local machine) so that the file can be uploaded. Or wil lthe user have to type the entire location of fikle ( path and all) for the form to upload.

I think this may be a silly question (  thats on second thoughts).

if you havent looked at the array question please look at it and let me know.

thanks
apoorva
apm is offline   Reply With Quote
Old 11-03-1999, 10:10 AM   Postid: 43294
pdstein
Registered User

Forum Notability:
0 pts:
[Post Feedback]
 
Join Date: May 1999
Posts: 242
The full path needs to be indicated, but the user doesn't need to type it all in.  By using the file input type, a "Browse" button will be displayed which allows the user to select the file.  Here's a snippet of code:


Code Sample:

<FORM ENCTYPE=&quot;multipart/form-data&quot; ACTION=&quot;fileUpload.php&quot; METHOD=POST>
<INPUT TYPE=&quot;hidden&quot; NAME=&quot;localDir&quot; VALUE=&quot;/&quot;>
<INPUT TYPE=&quot;hidden&quot; name=&quot;MAX_FILE_SIZE&quot; value=&quot;1000000&quot;>
<INPUT TYPE=&quot;submit&quot; NAME=&quot;fileAct&quot; VALUE=&quot;Upload&quot;>
Filename: <INPUT NAME=&quot;userfile&quot; TYPE=&quot;file&quot;>
</FORM>


pdstein is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 visitors)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 07:31 PM.


Running on vBulletin®
Copyright © 2000 - 2013, Jelsoft Enterprises Ltd.
Hosted & Administrated by FutureQuest, Inc.
Images & content copyright © 1998-2013 FutureQuest, Inc.
FutureQuest, Inc.