[PHP] Re: upload file

2007-03-04 Thread Fahad Pervaiz
ORIGINAL## I would like in fact to make more precise my previous post. I would like in fact to restrict the file extension (and therefore the user possibility). My user should be able only to upload files with extension JPEG, BMP, GIF. How can i set those parameter ? thx. END

[PHP] Re: upload file

2007-03-04 Thread Joker7
In news: [EMAIL PROTECTED], Alain Roger said: Hi, I would like in fact to make more precise my previous post. I would like in fact to restrict the file extension (and therefore the user possibility). My user should be able only to upload files with extension JPEG, BMP, GIF. How can i

[PHP] Re: upload file

2007-03-04 Thread Al
$permissable_MINE_types= array( //*** file upload parms 'image/png' = 'png', 'image/gif' = 'gif', 'image/jpeg'= 'jpg', 'image/pjpeg' = 'jpg', 'application/pdf' = 'pdf', );

Re: [PHP] Re: Upload File (binary files?)

2006-05-15 Thread Rory Browne
How is it not suited? I stopped using mySQL to store images because of browser refresh problems, but other than that -- I didn't find any major problems with using it. Plus, moving images from one system to another was much easier because you just moved the dB and you don't have to worry about

Re: [PHP] Re: Upload File (binary files?)

2006-05-15 Thread Rory Browne
How is it not suited? I stopped using mySQL to store images because of browser refresh problems, but other than that -- I didn't find any major problems with using it. Plus, moving images from one system to another was much easier because you just moved the dB and you don't have to worry about

Re: [PHP] Re: Upload File (binary files?)

2006-05-12 Thread tedd
At 11:07 PM +0200 5/11/06, Jochem Maas wrote: I think you make interesting points Tedd, it's given me stuff to think about anyway. leveraging a Db for image storage can have advantages but implementing it correctly takes a stack more knowledge and more work to do it correctly, therefore the

Re: [PHP] Re: Upload File (binary files?)

2006-05-11 Thread tedd
At 1:02 AM +1000 5/11/06, Peter Hoskin wrote: Despite common belief, SQL is not suited to the storage of binary files. SQL is based on ASCII. Store your files on the filesystem, not SQL. How is it not suited? I stopped using mySQL to store images because of browser refresh problems, but

Re: [PHP] Re: Upload File (binary files?)

2006-05-11 Thread Jochem Maas
tedd wrote: At 1:02 AM +1000 5/11/06, Peter Hoskin wrote: Despite common belief, SQL is not suited to the storage of binary files. SQL is based on ASCII. Store your files on the filesystem, not SQL. How is it not suited? I stopped using mySQL to store images because of browser refresh

[PHP] Re: Upload File

2006-05-10 Thread Renzo Clavijo
hi all.. I'm gonna be more precise: I wrote a form with fields text type=file , then i need to know how to upload the files to the MySQL server (postgreSQL wold be appreciated). It implies: Which field(s) must have the table where I'll save the image?. Is there an example code to upload

[PHP] Re: Upload File

2006-05-10 Thread Barry
Renzo Clavijo schrieb: hi all.. I'm gonna be more precise: I wrote a form with fields text type=file , then i need to know how to upload the files to the MySQL server (postgreSQL wold be appreciated). It implies: Which field(s) must have the table where I'll save the image?. Is there

Re: [PHP] Re: Upload File

2006-05-10 Thread Peter Hoskin
Renzo Clavijo wrote: hi all.. I'm gonna be more precise: I wrote a form with fields text type=file , then i need to know how to upload the files to the MySQL server (postgreSQL wold be appreciated). It implies: Which field(s) must have the table where I'll save the image?. Is there

Re: [PHP] Re: Upload File

2006-05-10 Thread Barry
Peter Hoskin schrieb: Renzo Clavijo wrote: hi all.. I'm gonna be more precise: I wrote a form with fields text type=file , then i need to know how to upload the files to the MySQL server (postgreSQL wold be appreciated). It implies: Which field(s) must have the table where I'll save the

Re: [PHP] Re: Upload File

2006-05-10 Thread Peter Hoskin
But mysql can be quite a good spool though. That way you don't have to code one for yourself. That does not mean that there are not SIGNIFICANT ADVANTAGES to coding something to use the filesystem - such as seek speed. When dealing with large datasets of binary, filesystems are much quicker

Re: [PHP] Re: Upload File

2006-05-10 Thread Barry
Peter Hoskin schrieb: But mysql can be quite a good spool though. That way you don't have to code one for yourself. That does not mean that there are not SIGNIFICANT ADVANTAGES to coding something to use the filesystem - such as seek speed. When dealing with large datasets of binary,

Re: [PHP] Re: Upload File

2006-05-10 Thread Jochem Maas
Peter Hoskin wrote: Renzo Clavijo wrote: hi all.. I'm gonna be more precise: I wrote a form with fields text type=file , then i need to know how to upload the files to the MySQL server (postgreSQL wold be appreciated). It implies: Which field(s) must have the table where I'll save the

Re: [PHP] Re: Upload File

2006-05-10 Thread Peter Hoskin
Jochem Maas wrote: Peter Hoskin wrote: Renzo Clavijo wrote: hi all.. I'm gonna be more precise: I wrote a form with fields text type=file , then i need to know how to upload the files to the MySQL server (postgreSQL wold be appreciated). It implies: Which field(s) must have the

Re: [PHP] Re: Upload File

2006-05-10 Thread Edward Vermillion
On May 10, 2006, at 10:53 AM, Peter Hoskin wrote: GOOGLE DO NOT ARGUE o_O? So, if ASCII and Binary are both codesets... which does SQL use to store its data? ASCII is a codeset, utf* is a codeset binary is a, um... , binary data. varchar, etc = ASCII/utf*/whatever =

Re: [PHP] Re: Upload File

2006-05-10 Thread Richard Lynch
On Wed, May 10, 2006 9:52 am, Renzo Clavijo wrote: I'm gonna be more precise: I wrote a form with fields text type=file , then i need to Should be input And don't forget to use FORM attribute: enctype=multipart/form-data know how to upload the files to the MySQL server (postgreSQL

Re: [PHP] Re: Upload File

2006-05-10 Thread Rory Browne
There are names for people who use the blob field of a MySQL db to store images. Moron, and Idiot are just two examples, but if other circumstances exist, you can say newbie as well. As a newbie I thought myself that storing images in a DB would be a nice clean solution. Voices of experience said

Re: [PHP] Re: Upload File

2006-05-10 Thread Jochem Maas
thank you Edward. Edward Vermillion wrote: On May 10, 2006, at 10:53 AM, Peter Hoskin wrote: GOOGLE DO NOT ARGUE o_O? yeah! I did figure it really was about time they changed their 'Do No Evil' slogan given their escapades in china funnily enough I watched a documentary the other

Re: [PHP] Re: Upload File

2006-05-10 Thread Jochem Maas
Jochem Maas wrote: thank you Edward. ... there is a funny little story about where the name BLOB came from: http://www.cvalde.net/misc/blob_true_history.htm just to note that BLOBs where invented by the guy that designed Interbase which just happens to be the ancestor of the coolest DBMS

[PHP] Re: upload file - clients path to file?

2005-08-30 Thread Mark Rees
Hi all. I havent found an answer after looking at the manual. I'm trying to find out if it possible to find the path of the file on the clients pc once a form has been submitted with the file upload form. No, this would be a security risk. If all your users are on an intranet, you may be

Re: [PHP] Re: upload file - clients path to file?

2005-08-30 Thread angelo
Thanks for the replies. Well basically i need it for an add products page and if the users doesnt fill in all the fields correctly I display some error message as well as populate the textfields and dropdown lists with the values they previously entered, so if they entered/selected the file I

Re: [PHP] Re: upload file - clients path to file?

2005-08-30 Thread Mark Rees
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thanks for the replies. Well basically i need it for an add products page and if the users doesnt fill in all the fields correctly I display some error message as well as populate the textfields and dropdown lists with the values they

Re: [PHP] Re: upload file - clients path to file?

2005-08-30 Thread Torgny Bjers
IMHO this is just a design issue, why not just hide the upload field, display a message that they need not re-upload, and just add a hidden field with the name of the uploaded file and once they've corrected their fields, they re-post, and viola, you've got your file still. [EMAIL PROTECTED]

Re: [PHP] Re: upload file - clients path to file?

2005-08-30 Thread Jasper Bryant-Greene
[EMAIL PROTECTED] wrote: Well basically i need it for an add products page and if the users doesnt fill in all the fields correctly I display some error message as well as populate the textfields and dropdown lists with the values they previously entered, so if they entered/selected the file I

Re: [PHP] Re: upload file - clients path to file?

2005-08-30 Thread Angelo Zanetti
Angelo Zanetti Z Logic www.zlogic.co.za [c] +27 72 441 3355 [t] +27 21 469 1052 Jasper Bryant-Greene wrote: [EMAIL PROTECTED] wrote: Well basically i need it for an add products page and if the users doesnt fill in all the fields correctly I display some error message as well as

: [PHP] Re: upload file warning

2004-12-17 Thread yangshiqi
PROTECTED] : [PHP] Re: upload file warning Yangshiqi wrote: I got a php waring when I upload my file: Warning: MAX_FILE_SIZE of 20 bytes exceeded - file [imgpath=mz-n10.pdf] not saved in Unknown on line 0 that seems like a very descriptive warning to me... In the form I write

[PHP] Re: upload file warning

2004-12-16 Thread M. Sokolewicz
Yangshiqi wrote: I got a php waring when I upload my file: Warning: MAX_FILE_SIZE of 20 bytes exceeded - file [imgpath=mz-n10.pdf] not saved in Unknown on line 0 that seems like a very descriptive warning to me... In the form I write like these: input type='hidden'

[PHP] Re: Upload file field not working as a form element

2004-03-21 Thread Vernon
All I am trying to do is insert the file name, not the file. The file is being uploaded to the server in a specific location. All I need is the filename inserted into the database. I've gotten the upload part to work and everything I just can't get the file name inserted for God knows what reason.

Re: [PHP] Re: Upload file field not working as a form element

2004-03-21 Thread Lowell Allen
All I am trying to do is insert the file name, not the file. The file is being uploaded to the server in a specific location. All I need is the filename inserted into the database. I've gotten the upload part to work and everything I just can't get the file name inserted for God knows what

Re: [PHP] Re: Upload file field not working as a form element

2004-03-21 Thread Vernon
The uploaded file name will be $HTTP_POST_FILES[filename][name] -- use that rather than $_POST[filename]. I'm sorry I don't understand. What is the extra [name] for? When I use this in the insert into the value that is inserted into the database is Array, as opposed to the actual filename.

Re: [PHP] Re: Upload file field not working as a form element

2004-03-21 Thread Jason Wong
On Sunday 21 March 2004 22:53, Vernon wrote: The uploaded file name will be $HTTP_POST_FILES[filename][name] -- use that rather than $_POST[filename]. I'm sorry I don't understand. What is the extra [name] for? When I use this in the insert into the value that is inserted into the database

Re: [PHP] Re: Upload file field not working as a form element

2004-03-21 Thread Lowell Allen
The uploaded file name will be $HTTP_POST_FILES[filename][name] -- use that rather than $_POST[filename]. I'm sorry I don't understand. What is the extra [name] for? When I use this in the insert into the value that is inserted into the database is Array, as opposed to the actual filename.

[PHP] Re: Upload file field not working as a form element

2004-03-20 Thread Ben Ramsey
Could you post both your HTML form code and the PHP code you're using to handle the file upload. Also, just to make sure I understand what you're trying to do, you want to insert the uploaded file into a MySQL database? Vernon wrote: As much as I try I cannot get a file field in a form

[PHP] Re: upload file

2002-08-25 Thread eriol
Check these out: http://www.php.net/manual/en/features.file-upload.php http://www.php.net/manual/en/function.move-uploaded-file.php From the bit of code you posted, you're not declaring where an upload should actually go.. If you want it sent via email (attachment, not upload), that's another

[PHP] Re: Upload File Problem

2002-07-18 Thread Richard Lynch
I have a simple script that attempts to upload a file and save it on the server. When I click send file I get this error message 'Warning: Unable to open '' for reading: No such file or directory in /var/www/html/upload.php on line 5 Couldn't copy the file!'. The file is being uploaded from a Win

[PHP] Re: upload file size

2002-07-05 Thread val petruchek
Check Apache limitations -- Sincerely, val petruchek Norman Zhang [EMAIL PROTECTED] ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ: [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I can't seem to upload file bigger than 5M even if I set the upload_max_filesize to 20M in php.ini and MAX_FILE_SIZE to