[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] PHP upload on RAQ4



> I'm having problem uploading files to my RAQ server using PHP. It
> works fine
> on my Redhat tester.
>
> The tmp_file is none.  This is pobably an access issue.
>
> My PHP settings are:
> version:  4.1.2
> file_uploads: 1
> upload_max_filesize:  2097152
> upload_tmp_dir: /tmp
>
> When I upload
> ----------- html --------------
> <form enctype="multipart/form-data" action="upload.php" method=post>
>   Upload this file: <input name="myfile" type="file">
>   <input type="submit" value="Send">
> </form>
> ------------- html ------------
> $myfile = none  /* no upload toRAQ server */
> $myfile_name = test.txt
> $myfile_size = 0 bytes
> $myfile_type = text/plain
>
>
> Thankx
>
> ------
> Kham

Kham,
Is the upload.php the name of the page you are actually calling this script?
If not then it is not passing any variables over to it.
Dont forget that if this is just one of a series of images then you need to
reference them as an array variable;

<input name="imgfile[]" type="file" size="40" maxlength="100">

Phil

** http://www.diygear.com THE Online DIY Toolstore For DIY & Business
** Infolink Electronic Systems Ltd. http://www.infolinkelectronics.co.uk
** Professional Web Design & Cobalt Hosting Solutions
** Sun Cobalt iForce Reseller - Canon Silver Reseller
** Contact: Sales@xxxxxxxxxxxxxxxxxxxxxxxxx
** Tel / Fax 0121 458 4894 (office) 0121 441 3558 (home)