Uploading files without User actions

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ADTRAN
Forum Newbie
Posts: 10
Joined: Fri Jun 09, 2006 4:39 pm

Uploading files without User actions

Post by ADTRAN »

Hi, I've written a script that so far uses files located on the server, but this was for testing purposes only. For the final version, I need the script to pull files off the user's computer.

I know what these files will be named and where they will be located, and I was just wondering if (for convenience on the user's part) these files could be uploaded automatically, or do I have to use a form which they submit? Thanks.
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

to upload from a client machine, use a web form you must.

alternates there are (flash, activex, java applets), but write your own you must.
ADTRAN
Forum Newbie
Posts: 10
Joined: Fri Jun 09, 2006 4:39 pm

Post by ADTRAN »

Can I make a form that takes multiple files?
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

ADTRAN wrote:Can I make a form that takes multiple files?
yes...

but select the files individually the user must.

take a look here: viewtopic.php?t=30375
ADTRAN
Forum Newbie
Posts: 10
Joined: Fri Jun 09, 2006 4:39 pm

Post by ADTRAN »

Last question, I think:

Is there a way to have predetermined text already in the submission field? I know that, if it were there, it would be changeable, and that's fine. Nobody would want to change it anyway...

I tried assigning a value to the field and that was a flop...

Many thanks
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

file fields cannot be prefilled without external (not native to the browser) help. i.e. Javascript, nor HTML can specify the file referenced.
litebearer
Forum Contributor
Posts: 194
Joined: Sat Mar 27, 2004 5:54 am

Post by litebearer »

There are times to think outside the box.

From your original post, you desire to automatically transfer files from client's computer to the server. Question is how do accomplish this task with no user action.

And the answer is .......................

http://www.primasoft.com/ftp.htm


Lite...
Post Reply