Re: [PHP] file upload question

2009-08-03 Thread Phpster
On Aug 3, 2009, at 7:04 AM, seb wrote: Hey all, i am using move_upload function to upload files to the server, but i want to add a feature that will allow files to be archived that have been uploaded already. so, the problem is: i upload a file that i want to "upgrade" and move the

[PHP] file upload question

2009-08-03 Thread seb
Hey all, i am using move_upload function to upload files to the server, but i want to add a feature that will allow files to be archived that have been uploaded already. so, the problem is: i upload a file that i want to "upgrade" and move the old file to an archive directory but I want to

Re: [PHP] File Upload Question

2004-07-12 Thread xin
ROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 12, 2004 12:15 PM Subject: [PHP] File Upload Question > Perhaps this is more about HTML than PHP, but the PHP $_FILES var seems to > be set up to allow a list of files to be uploaded. How does one get the > pop-up window to all

Re: [PHP] File Upload Question

2004-07-12 Thread John W. Holmes
Vail, Warren wrote: Perhaps this is more about HTML than PHP, but the PHP $_FILES var seems to be set up to allow a list of files to be uploaded. How does one get the pop-up window to allow a user to select (ctrl-click or whatever) multiple files in the same pop-up window? Everything I have tried

[PHP] File Upload Question

2004-07-12 Thread Vail, Warren
Perhaps this is more about HTML than PHP, but the PHP $_FILES var seems to be set up to allow a list of files to be uploaded. How does one get the pop-up window to allow a user to select (ctrl-click or whatever) multiple files in the same pop-up window? Everything I have tried has left the user r

Re: [PHP] File upload question

2004-01-21 Thread Igor Kryltsov
Hi, You recommend to allocate post id when "Compose mail" pressed and set draft(boolean) = true. Than I can attach files one by one linking them to post_id in DB. This approach is better than mine, I think, as files will be already linked to post_id in DB and if post will never be submitted prune

Re: [PHP] File upload question

2004-01-21 Thread Raditha Dissanayake
Hi Igor, The approach taken by yahoo etc is the most popular. In your case you will just need to enter the message in it's entirity in the database as you normally would but perhaps mark it as a draft so that it does not become visible. SHAMLESS PLUG: alternatively you can use rad upload at ht

[PHP] File upload question

2004-01-21 Thread Igor Kryltsov
Hi, If I allow multiple file uploads in my custom designed discussion board if there any way to collect all attachments file names by reloading page and than upload all of them on "Post" button (form submission)? Displaying multiple on a page does not look as a nice solution to me as amount of

Re: [PHP] file upload question

2003-01-24 Thread Jason Wong
On Saturday 25 January 2003 06:34, Andrew Rench wrote: > When you say you need to include a filename, do you mean the > $_FILES['userfile']['tmp_name'] or the variable name identified in the > input tag? (name="userfile") ANY filename which makes sense to you, so most likely the latter. -- Jason

RE: [PHP] file upload question

2003-01-24 Thread Andrew Rench
When you say you need to include a filename, do you mean the $_FILES['userfile']['tmp_name'] or the variable name identified in the input tag? (name="userfile") --- Mark Heintz PHP Mailing Lists <[EMAIL PROTECTED]> wrote: > > You have to include a filename along with the path when you're using >

RE: [PHP] file upload question

2003-01-24 Thread Mark Heintz PHP Mailing Lists
You have to include a filename along with the path when you're using move_uploaded_file(); if you're only specifying '/usr/local/etc/httpd/htdocs/blast/images' as your destination string, php is trying to create a file named 'images' in '/usr/local/etc/httpd/htdocs/blast'. If there's still a prob

RE: [PHP] file upload question

2003-01-24 Thread Andrew Rench
thanks for the advice- this makes sense as to why I'm not seeing the file. I added the move_uploaded_file() to the script to see what happens and I end up getting the following error: PHP Warning: Unable to move '/var/tmp/phpfcwVyC' to '/usr/local/etc/httpd/htdocs/blast/images' in /usr/local/etc/

RE: [PHP] file upload question

2003-01-24 Thread Ford, Mike [LSS]
> -Original Message- > From: Andrew Rench [mailto:[EMAIL PROTECTED]] > Sent: 24 January 2003 17:05 > > the following code: > > > > ="post"> > > Send this file: > > > echo $_FILES['userfile']['tmp_name']; > ?> > > > > produces the following after upload: > > /var/tmp/phplSTEVp

Re: [PHP] file upload question

2003-01-24 Thread Adam Voigt
This may just be me but I've never gotten upload to work where the form is posting to the same page, try moving it to two pages. On Fri, 2003-01-24 at 12:05, Andrew Rench wrote: the following code: " method ="post">

[PHP] file upload question

2003-01-24 Thread Andrew Rench
the following code: Send this file: produces the following after upload: /var/tmp/phplSTEVp (or php[something-or-other]) When I view that directory, it is empty. I put togther this simple test script because I was having problems with similar script that uses the move_uploaded_file()

Re: [PHP] File Upload Question - Previewing .jpgs

2002-01-03 Thread Bogdan Stancescu
That's a browser/image type issue. If you're trying it with a JPEG image (as the message title suggests) then it's a browser issue -- your browser doesn't handle JPEG files due to local settings, and starts up the paint program instead. If you're trying with some other image type (such as TIFF for

[PHP] File Upload Question - Previewing .jpgs

2002-01-03 Thread Anthony Ritter
To all, The following is a file upload question using PHP. I am able to upload a file to my server with the following script. (see below) It's in two parts - the first is a html form and the second is the php script which takes the variable $img1_name. However, I'd like to check if, in fact, t

[PHP] File Upload Question...

2001-12-25 Thread Anthony Ritter
Merry Christmas everybody. I am using MS Windows 98 with Apache and following an example in Julie Meloni's "PHP - Fast and Easy" (Chapter 10) in which she describes file uploading using PHP on page 168-174. She has two files: 1) an html form to receive the input from the user for the file to be

Re: [PHP] file upload question

2001-04-05 Thread Yasuo Ohgaki
Yes. Refer to PHP Manual. There is description for that. -- Yasuo Ohgaki "Joe Stump" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm in the habit of putting all my form variables into an array (ie: > ) so > that I have a nice little package to pass to fun

Re: [PHP] file upload question

2001-04-05 Thread Renze Munnik
Joe Stump wrote: > > I'm in the habit of putting all my form variables into an array (ie: > ) so > that I have a nice little package to pass to functions. My question is can you > put files into those as well? If so how does it handle the $file_name and > $file_size variables PHP creates? > > --

[PHP] file upload question

2001-04-04 Thread Joe Stump
I'm in the habit of putting all my form variables into an array (ie: ) so that I have a nice little package to pass to functions. My question is can you put files into those as well? If so how does it handle the $file_name and $file_size variables PHP creates? --Joe /**