anks again,
Rod
- Original Message -
From: "Philip Olson" <[EMAIL PROTECTED]>
To: "Rodney Green" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, June 08, 2003 1:21 AM
Subject: Re: [PHP] file upload script
>
> By no errors, do you mean
That article is pretty old, and the code sucks.
Read this instead:
http://www.php.net/features.file-upload
It will explain everything.
Regards,
Philip
On Sun, 8 Jun 2003, nabil wrote:
> Please help me , I want to make any user on my website to submit his CV , or
> any file to a temp fold
By no errors, do you mean you have a PHP version greater
than PHP 4.2.0 and checked the ['error'] code, and it
has a value of 0? Are you sure you want the filename
to be $file_name? I doubt you do.
Regards,
Philip
ref: http://www.php.net/features.file-upload
On Sat, 7 Jun 2003, Rodney Green w
Am I making any obvious mistakes here, in my upload script? I want to
upload text-files only, they should end up in the directory from which
the script is executed and be names __traningsmatcher.txt.
Further details: Everything works, but I'm just curious if there is some
hidden mistakes. This i
fp);
$destination_file="./directory/".$photo2;
$upload = ftp_fput($conn_id, $destination_file, $fp, FTP_BINARY);
// check upload status
if (!$upload)
{
print "FTP upload has failed!";
}
// close the FTP stream
//@ftp_close($conn_id);
ftp_quit($conn_id);
}
php?>
- Ori
Thanks Jason, I'll try that, and let you know the results. Hugh
- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 27, 2003 11:48 AM
Subject: Re: [PHP] File Upload and ftp transfer problem
> On Fr
On Friday 28 March 2003 03:16, Hugh Danaher wrote:
> I'm trying to get the following script to ftp transfer an uploaded image
> file so as to get around a file permission problem. The upload portion of
> this works without problem, the ftp portion doesn't spit out any errors
> either, but the file
Check the permissions on the directory you are trying to upload your
files. The host I am using required me to either chmod the upload
directory to 777 (not what I wanted to do) or run PHP with cgi-wrap
enabled - this allowed my PHP application to run as the user and
therefore had permission to
On Fri, 2003-03-07 at 07:24, Charles Kline wrote:
> I have played with it - changing permissions and the only
> one that works is chmod 777 - not sure if this is good or not - pretty
> new to unix administration stuff.
If you don't want to make a new directory to store them, you should make
sure
Message -
From: "Niklas Lampén" <[EMAIL PROTECTED]>
To: "Php-General" <[EMAIL PROTECTED]>
Sent: Thursday, February 27, 2003 9:07 AM
Subject: RE: [PHP] File upload problem - permission denied
On linux you can do it in shell with chmod command. Do 'chmod 766 direc
3 16:03
To: [EMAIL PROTECTED]
Subject: Re: [PHP] File upload problem - permission denied
All right then. ¿Where do I set that permission for PHP? On my local Windows
machine it is usually in IIS. However the whole ..\inetpub\wwwroot\..
directory already has read and write permissions. Apart from PHP
All right then. ¿Where do I set that permission for PHP? On my local Windows
machine it is usually in IIS. However the whole ..\inetpub\wwwroot\..
directory already has read and write permissions. Apart from PHP I use Cold
Fusion. With Cold Fusion I don't have any permission problems...
"Niklas la
Seems that php does not have write access to that directory. Set it right
and it should work.
Niklas
P.S. Tip: It's much quicker to create plain html without echo. Just do it
like
, not like
"; ?> :)
-Original Message-
From: Frans Bakker [mailto:[EMAIL PROTECTED]
Sent: 27. helmikuuta
At 02:32 26.02.2003, Sunfire said:
[snip]
>i looked in the manual about file uploads and basically know how it works
>other than a little playing around with it but was wondering how you could
>make a browse for file button that opens a box on the users compu
plain html
On February 25, 2003 08:32 pm, Sunfire wrote:
> hi..
>
> i looked in the manual about file uploads and basically know how it works
> other than a little playing around with it but was wondering how you could
> make a browse for file button that opens a box on the users computer so
> t
Ochoa [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 18, 2003 7:04 AM
To: John M; [EMAIL PROTECTED]
Subject: Re: [PHP] File upload problem
There may be several reasons why it doesn't work but the first thing I
noticed is that "action" is blank. You need to have this defined.
John M
There may be several reasons why it doesn't work but the first thing I noticed is that
"action" is blank. You need to have this defined.
John M <[EMAIL PROTECTED]> wrote:Hello,
I have the code below. It's a simple file upload. But it doesn't work.
Before the line if(isset( $Submit )) is an echo
> Can anybody help me with file uploading, again...
Have you tried using the fairly simple example that is given at
http://www.php.net/manual/en/features.file-upload.php yet? I've found
that starting with this example and then adding all the extras tends to
work well when you've got problems.
Can anybody help me with file uploading, again...
I tried uploading a file through...
but, on project_save.php, the
$HTTP_POST_FILES["project_file"]["size"] is zero(0) , and
$HTTP_POST_FILES["project_file"]["tmp_name"] is an empty string.
i checked,
$HTTP_POST_FILES["project_files"]["error"
You need to check the following variables:
$_FILES["userfile"]["tmp_name"];
$_FILES["userfile"]["size"];
$_FILES["userfile"]["name"];
$_FILES["userfile"]["type"];
Ciao
Francesco
- Original Message -
From: "Kenneth Suralta" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, Febru
Which sounds like it has to be there to me? I just checked a working
file upload form without MAX_FILE_SIZE field, and it worked.. I guess i
misunderstood what was on the tutorials ? Or i wonder if this was a must
in the earlier versions of PHP? Anyone?
I have an upload feature on my a
e, however,
cannot be fooled. "
-Original Message-
From: Gurhan Ozen [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 10, 2003 9:50 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] File upload problem
On Sun, 2003-02-09 at 19:43, Jason Wong wrote:
> On Monday 10 F
On Sun, 2003-02-09 at 19:43, Jason Wong wrote:
> On Monday 10 February 2003 05:56, Gurhan Ozen wrote:
>
> > You need to specifye the MAX_FILE_SIZE value as a hidden argument to the
> > form..
> > See: http://www.php.net/manual/en/features.file-upload.php
>
> You don't.
>
> If you can show other
On Monday 10 February 2003 05:56, Gurhan Ozen wrote:
> You need to specifye the MAX_FILE_SIZE value as a hidden argument to the
> form..
> See: http://www.php.net/manual/en/features.file-upload.php
You don't.
If you can show otherwise please post details to the list.
--
Jason Wong -> Gremlins
Hi John:
Well actually I believe that you don't have to set MAX_FILE_SIZE...(I
don't)
but you might want make sure that you are not trying to send a file
larger than the post_max_size directives in php.ini and ensure that
file_uploads is set to allow http uploads.
On Sunday, February 9, 2003, a
Hi,
You need to specifye the MAX_FILE_SIZE value as a hidden argument to the
form..
See: http://www.php.net/manual/en/features.file-upload.php
Gurhan
On Mon, 2003-06-30 at 15:05, John M wrote:
> Hello,
>
> I have the code below. It's a simple file upload. But it doesn't work.
> Before the line
On Saturday, February 1, 2003, at 10:58 AM, Tomator wrote:
I tried but I can't upload any file. My form and code are as following:
Try looking at:
http://www.php.net/manual/en/features.file-upload.php
There is a working example there.
--
PHP General Mailing List (http://www.php.net/)
To uns
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
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
>
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
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/
> -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
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">
Files in web folders should usually be 755
/peter a
At 2003-01-23 11:15, Marco Alting wrote:
>Hi, I have a php script which uploads file to a webserver. The idea is that
>anyone can upload files, but only another php script can read the files. At
>this moment I think someone is deleting file
> -Original Message-
> From: John M [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 30, 2003 3:05 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] File upload problem
>
>
> Hello,
>
> I have the code below. It's a simple file upload. But it doesn't work.
> Before the line if(isset( $Submit )
John,
I have Win 98 with Apache 2 and it worked fine for me, once I commented out
the file type check, didn't seem to like any file I tried, even gifs. I
also had to create a folder named 'files' under my htdocs folder in apache.
Eddie
-Original Message-
From: John M [mailto:[EMAIL PRO
> Every body , I want to make a provision for the suer , by which , they
can
> select number of files from a list box and upload them to the server
in
> PHP.
They have to select each file individually. Each file must be uploaded
through it's own input element.
The details of how to do these t
what version of php are you using?
- Original Message -
From: "Miro Kralovic" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, December 14, 2002 3:52 AM
Subject: RE: [PHP] File Upload
Thanks Tom, but still no luck.. it seems like it doesn't reco
On Saturday 14 December 2002 11:35, Tom Rogers wrote:
> You are missing this bit:
>
>
I am curious as to why so many people say this in response to file upload
problems?
In practice, none of my upload forms have that "missing bit" but they work
perfectly well using a diverse range of browser
Thanks Tom, but still no luck.. it seems like it doesn't recognize $testfile
variable at all in PHP script, even thought the globals are ON...
You are missing this bit:
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
Saturday, December 14, 2002, 1:03:05 PM, you wrote:
MK> Hi everybody,
MK> I'm trying to upload a file using the following scripts, but it doesn't
MK> work, it actually doesn't get through the first line of PHP script at all
MK> and displays "a problem has occured" message. I'm running the scr
Don't bother to respond people... worked out the issue - the double
backslashes in the name...
Cheers
Rich
-Original Message-
From: Rich Gray [mailto:[EMAIL PROTECTED]]
Sent: 26 November 2002 21:14
To: [EMAIL PROTECTED]
Subject: [PHP] File upload on Win2k ...
PHP v4.2.3
Win2K Sp2
Apache v
The directory must exists prior to copy, and must be writeable by the
server process.
Also note this is a filesystem path.
Pushpinder Sngh Garcha wrote:
Hi
I am trying to upload a file using php.
This is the code that I am using for the php script called "upload.php"
if(!empty($userfile)) {
Vogelsinger
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] File Upload problem
It was a typo. Sorry.
-Original Message-
From: Ernest E Vogelsinger [mailto:ernest@;vogelsinger.at]
Sent: Tuesday, November 12, 2002 3:46 PM
To: Van Andel, Robert
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] File Upload p
Vogelsinger [mailto:ernest@;vogelsinger.at]
Sent: Tuesday, November 12, 2002 3:46 PM
To: Van Andel, Robert
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] File Upload problem
At 00:25 13.11.2002, Van Andel, Robert said:
[snip]
>encType=multipart/form-data&g
At 00:25 13.11.2002, Van Andel, Robert said:
[snip]
>encType=multipart/form-data>name=MAX_FILE_SIZE>
>
> }
>?>
>When I submit the form at the bottom of the script, the $user_file variable
>equals "none". I am unable to figure out what is going on. The var
That's it --- that will teach me not to read the last line in the
documentation! argh...
Thanks
Sam
On 7 Nov 2002, Marco Tabini wrote:
> When are you checking that the file actually exists? PHP deletes the
> temporary file once the script has finished executed. This means you
> have to copy it
When are you checking that the file actually exists? PHP deletes the
temporary file once the script has finished executed. This means you
have to copy it somewhere else if you need to manipulate (or even to
look at it after you posted), or you'll never find anything. I went nutz
with this the first
Try print_r($_FILES) and see if you really get what you should. And also
check if you have your
form set as
David Russell wrote:
Hi all,
I have a form with a file upload section. The target script contains the
following:
if (is_uploaded_file($_FILES['newuserfile']['tmp_name'])) {
Ad
Well, you can use
Baroiller Pierre-Emmanuel wrote:
>Hi,
>
>everyone know how to upload files from the browser to your web server using
>multipart-form method with move_downloaded_file() php function.
>
>But... It's a slow method for multiple files & huge files transfert.
>
>I'm currently workin
> I'm currently working on a big photo album tool, and I want
> to provide user
> the ability to upload a lot of jpeg files in one time...
> The big problem with form is it's too slow...
>
> Does anyone know how to by-pass this ( with java or other
> tools )?
It's primarly slow bec
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hey,
I have not tested this but I think the correct syntax is:
php_value upload_max_filesize 50M
If the above doesn't work my next bet would be:
php_admin_value upload_max_filesize 50M
Hope that helps!
~Pauly
On Monday 09 September 2002 07:04 am, an
You can also do this all in a php file without changing the directives in
either .htaccess or the httpd.conf file.
Here is a sample:
Hope that helps,
Josh Thomas
RPS Internet Services
-Original Message-
From: Oliver Schonrock [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 1
> No, I mean PHP. The 4.2.2 release was a security fix for 4.2.1 only.
> None of the changes for the past couple of months, including this one, is
> in it.
OK, but you said originally
> post_max_size and upload_max_filesize could not be set in your .htaccess
> file until recently. It was chang
> Thanks for quick response. Just a couple of silly questions:
>
> - changed where? in php or apache? My host is running the "three week old"
> v 4.2.2 of php so I guess you mean apache?
No, I mean PHP. The 4.2.2 release was a security fix for 4.2.1 only.
None of the changes for the past couple
Thanks for quick response. Just a couple of silly questions:
- changed where? in php or apache? My host is running the "three week old"
v 4.2.2 of php so I guess you mean apache?
- If I can in fact get them to change it in http.conf for my virtual host
block then I will have these huge (!) set
post_max_size and upload_max_filesize could not be set in your .htaccess
file until recently. It was changed about 3 weeks ago, so unless your
provider is running a recent snapshot, you won't be able to get this to
work.
Ask your provider to add those lines to your virtualhost block in the
httpd
Jason Wong wrote:
> Apparently that is how it will work in a _future_ version of PHP. But for now
> it's all stuffed in RAM until the complete file is received.
That's crazy. Maybe I don't understand enough of how PHP deals with
various web servers and maybe that's why this is the way it is.
On Wednesday 24 July 2002 21:48, Reid Sutherland wrote:
> Hi,
>
> I'm currently locked in a battle with PHP and file uploads. I've
> searched the list to no avail. I actually found a guy with the same
> problem who ended up using perl to make this work. I'm trying to avoid
> that.
>
> The probl
On 5/30/02 8:13 AM, "Ford, Mike [LSS]" [EMAIL PROTECTED]
pressed the keys forming the message:
>> -Original Message-
>> From: Edward Marczak [mailto:[EMAIL PROTECTED]]
>> Sent: 30 May 2002 03:27
>>
>> OK - I've read the manual, looked at sample codeand I sadly am
>> mis
On 5/29/02 10:39 PM, "Gerard Samuel" [EMAIL PROTECTED] pressed the keys
forming the message:
> A guess, but is the tmp dir set in php.ini??
Yeah - sorry, I should have said that in the first place.
--
Ed Marczak
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscri
> -Original Message-
> From: Edward Marczak [mailto:[EMAIL PROTECTED]]
> Sent: 30 May 2002 03:27
>
> OK - I've read the manual, looked at sample codeand I sadly am
> missing something.
>
> I'm doing (basically) this in my form:
>
> method="post"
> name="replysub" id="replysub">
>
A guess, but is the tmp dir set in php.ini??
Edward Marczak wrote:
> OK - I've read the manual, looked at sample codeand I sadly am
> missing something.
>
> I'm doing (basically) this in my form:
>
> method="post" name="replysub" id="replysub">
>
>
>
> On the page it's submitted to, just
PROTECTED]]
Sent: Saturday, May 18, 2002 7:31 PM
To: Rodney Davis
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] file upload problem
On Sat, 18 May 2002, Rodney Davis wrote:
> I am trying to use the move_uploaded_file() function to upload files
to
> a specific directory. It works fine with small .jpg
On Sat, 18 May 2002, Rodney Davis wrote:
> I am trying to use the move_uploaded_file() function to upload files to
> a specific directory. It works fine with small .jpgs .txt etc etc but
> won't work with a large .mp3 file. Is this because it is too large?
> What can I do?
You can tell us what "
- Original Message -
From: Jason Wong <[EMAIL PROTECTED]>
Date: Tuesday, May 7, 2002 8:49 am
Subject: Re: [PHP] File upload problem
> On Tuesday 07 May 2002 19:09, David Freeman wrote:
> > > -Original Message-
> > > Hmm, after a bit of testing I
On Tuesday 07 May 2002 19:09, David Freeman wrote:
> > -Original Message-
> > Hmm, after a bit of testing I find that the MAX_FILE_SIZE
> > tag is useless to say the least (probably because no browsers support
>
> it?)
>
> That's somewhat of a shame I guess but I can hardly claim to be
I put the max file size tag into my code but that didn't help either. What
looks like is happening is that the php file can't be found. I'm using
phpscriptcenter's upload.php program and it is all in one script, if you
know what I mean.
What I'm seeing now is that, depending on the size of the
> -Original Message-
> Hmm, after a bit of testing I find that the MAX_FILE_SIZE
> tag is useless to say the least (probably because no browsers support
it?)
That's somewhat of a shame I guess but I can hardly claim to be
surprised - especially as I've just spent much of my time in th
On Tuesday 07 May 2002 14:14, David Freeman wrote:
> I guess that anything that causes this sort of thing to happen on the
> browser is going to help. I know I'd be fairly unimpressed if I sat
> waiting for a 2MB file to upload only to find that the limit is 1.5MB or
> some such. At least if a
On Tuesday 07 May 2002 15:22, Miguel Cruz wrote:
> On Tue, 7 May 2002, Jason Wong wrote:
> >>>
> >>
> >> You actually _need_ that hidden tag set AFAIK.
> >
> > I'm curious, I keep seeing people say that that tag is /necessary/, but
> > I've never had to use it in the upload forms that I've built
On Tue, 7 May 2002, Jason Wong wrote:
>>>
>>
>> You actually _need_ that hidden tag set AFAIK.
>
> I'm curious, I keep seeing people say that that tag is /necessary/, but I've
> never had to use it in the upload forms that I've built and they work just
> fine in Opera, NN & IE.
Don't feel ba
> -Original Message-
> I'm curious, I keep seeing people say that that tag is
> /necessary/, but I've never had to use it in the upload forms
> that I've built and they work just fine in Opera, NN & IE.
Good question. To be honest it's been a while since I looked, I built a
file
On Tuesday 07 May 2002 09:01, David Freeman wrote:
> > -Original Message-
> > D'oh! You're right, I went back and checked php.ini and
> > found upload_max_filesize but it's already set to 200M, I'm
> > assuming that means 200 MegaBytes. So I don't think that's
> > the problem. I do
> -Original Message-
> D'oh! You're right, I went back and checked php.ini and
> found upload_max_filesize but it's already set to 200M, I'm
> assuming that means 200 MegaBytes. So I don't think that's
> the problem. I don't have the hidden tag set in the page
> code so that
D'oh! You're right, I went back and checked php.ini and found
upload_max_filesize but it's already set to 200M, I'm assuming that means
200 MegaBytes. So I don't think that's the problem. I don't have the
hidden tag set in the page code so that shouldn't be a factor either, right?
I'm a real ro
I can remember there is an option on the php config file to set the max file size
when uploading...
I think you can also limit the size with a hidden input on the form... like this:
the value corresponds to the number of bytes. so this would be for 2 MB..
--
Fr
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then 1LT John W. Holmes declared
> Say it with me... "Show me the code!" No, louder! Yeah...that's good...
Sorry, i figured it would be something someone would spot immediately.
here is the form
/* add_teacher_form() */
function add_
Say it with me... "Show me the code!" No, louder! Yeah...that's good...
What's my name?
---John Holmes...
- Original Message -
From: "Nick Wilson" <[EMAIL PROTECTED]>
To: "php-general" <[EMAIL PROTECTED]>
Sent: Wednesday, May 01, 2002 3:24 PM
Subject: [PHP] file upload / no tmp name or
This sounds similar to what I am having, but not exactly. What version
of PHP are using, and on what platform?
My problem is the files don't actually appear on the filesystem, yet all
of the internal functions in PHP that allow me to manipulate the files
appear to "work".
I'm using v4.1.2, and I
I guess, you don't specify the enctype in the form you wrote.
Do you write like this?
.
Hiroshi Ayukawa
http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> > Warning: Unable to open 'C:\\Documents and
> > Settings\\vlad\\Desktop\\satellite\\florida.jpg' for reading: No such
> > file or directory in /var/www/kulchitski/btl/_talkroom_submit.php on
> > line 15
Well it says "Unable to open".
My guess is the file u want to upload doesn't exist.
What d
> if(!userfile)
>echo "ERROR";
>
> $filelocation="/tmp";
Does C:\tmp exist?
>
> copy($userfile, $filelocation)
>
> The message I get in my browser is:
> Warning: Unable to open 'C:\\Documents and
> Settings\\vlad\\Desktop\\satellite\\florida.jpg' for reading: No such
> file or directory in
This is exactly how I solve the problem as well, good to know I'm not the
only one with that idea. That must mean it wasn't that bad of an idea.
Dna
-Original Message-
From: Niklas Lampén [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 6:52 AM
To: Php-General
Subject
I've solved this kind of problems with three pages:
1. Form
2. Insert / Update data
3. Information about insert / update
Niklas
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 5. maaliskuuta 2002 15:34
To: [EMAIL PROTECTED]
Subject: [PHP] File Upload.
Hi
Linn Kubler wrote:
> I've setup an upload form for uploading files to my server. It seems to
> work well except the performance is pretty sad. For example it took 20
> minutes to upload a 50MB file over a 100Mb LAN. This is running on Linux
> w/Apache.
>
> At the heart of the script is the cop
Hi Balaji,
> I am trying to upload a file from remote machine.
> Could you please help out me.
Two things:
> upload.html
> -
>
This also needs to have a maximum file size specified:
> upload.php
>
In this script, you'll want to copy $file to "/pa
I'm assuming all this data is coming in from a form - somewhere in the
manual (too lazy at the monent to look where) there's a section on how to
upload files. Once a file is uploaded (in your case, an image), just move it
to somewhere accessable. Have field in the database that contains the name
o
On Tuesday 22 January 2002 07:00, will hives wrote:
> Please can someone help, I can't find any answers anywhere
>
> I have this code:
>
[snip]
>
> it's really just an online contacts book, what I want to do as have the
> ability to upload an image with the record.
>
> Then when the contact d
The official way to do this would be using the "accept" attribute:
accept = content-type-list [CI]
This attribute specifies a comma-separated list of content types that a
server processing this form will handle correctly. User agents may use this
information to filter out non-conforming files when
you could write a bit of JavaScript to run on the form's onSubmit event or
even the fields onBlur event. Then in your JavaScript, parse out the file
name and extension to validate. It's not 100% accurate since users could
rename any file to have a JPG extension, but it works for the majority.
> How can I, using:
>
> specify the file extension.
> I want the user only to upload *.jpg.
You can only check $userfile_type to detect the type of uploaded file. You
can specify nor extension to browse dialog neither default path for
browsing... Security, you know
Valentin Petruchek (aki Zliy
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
Well, I just finished a ftp program that originally used php to catch the
uploaded file, but soon realized the it did load it into memory then dump it
into a file. I finally ended up using perl running with xinetd to capture
the uploaded file and drop it into a file. then let php play with it fr
Hi :-)
could you post your code?
regards,
--Patricio
- Original Message -
From: Nikola Veber <[EMAIL PROTECTED]>
To: php forum <[EMAIL PROTECTED]>
Sent: Thursday, November 22, 2001 10:01 PM
Subject: [PHP] file upload troubles
> Hi !
> I'm having terrible troubles with the file upload pr
Hello,
I found the solution to my problem here it is.
Adding the following line in the HTML seems to make the PHP code work well
with the Upload Form.
Don't know why but, I guess this makes the document HTML compliant.
Regards,
Sharat
-Original Message-
From: Sharat Hegde [mailt
I've run into the same problem, I had to 'chmod 777 images' to be able
to create dirs or files, which is BAD security!
Brian Aitken wrote:
> Hiya
>
> I promise I won't keep perstering you after this question :-)
>
> My problem is this - I've got a complete system that works perfectly on
> Lin
Perhaps someone from your Network group(or similiar) have put a restriction towards
that site for some strange reason. Ask your administrator and he probobly will know
the answer.
//Johan
-Original Message-
From: Tim Grubb [mailto:[EMAIL PROTECTED]]
Sent: den 3 september 2001 09:55
To:
On Fri, 31 Aug 2001, Jeff Oien wrote:
> I have a user who is unable to upload files but I don't know where
> to start with the troubleshooting process. I have this:
>
> @copy("$img1", "/blah/$username/$img1_name")
> or die("File upload didn't work.");
>
> and they are getting the die
I found the problem. A user was logged in under their username
with a different case (capital/small letters) and that caused a problem.
Jeff Oien
> I have a user who is unable to upload files but I don't know where
> to start with the troubleshooting process. I have this:
>
> @copy("$img1", "/bl
201 - 300 of 362 matches
Mail list logo