feha
|
| Posted: 03/24/2002, 1:40 PM |
|
I like the way of uploading images at: http://www.gotocode.com/art.asp?art_id=85&
(The author:Alexey Alexapolsky)
Any Idea how to define allowed extentions and file size with in the CC (PHP)??
(That the users wont upload other sizes and extentions then allowed ones)
How about uploading direct to MySQL ???
Or to have a choice as direct to MySQL or Dedicated Catalogue/Drawer...
Regards
feha
|
|
|
 |
Alex Alexapolsky
|
| Posted: 03/25/2002, 2:41 AM |
|
1) As to file size you can check $myfile_size and $myfile_type variables for
corresponding information.
2) There is an article "how to store images in a database" that directly addresses
your issue.
|
|
|
 |
feha
|
| Posted: 03/26/2002, 9:31 AM |
|
Thank Yuo but I can't find them (the variables) with in Your example?
(can I put them with in the event's and how?)
|
|
|
 |
Tom
|
| Posted: 03/27/2002, 12:47 AM |
|
I suppose mentioned vars are created automatically as $myfile_name
|
|
|
 |
feha
|
| Posted: 03/27/2002, 1:03 PM |
|
on example: http://www.gotocode.com/art.asp?art_id=75&
I found this:
<FORM ENCTYPE="multipart/form-data" ACTION="EmpsGrid.{slanguage}" METHOD=POST>
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="100000">
Send this file: <INPUT NAME="myfile" TYPE="file">
<INPUT TYPE=hidden name=upload value=true>
<INPUT TYPE="submit" VALUE="Attach File">
</FORM>
This is a not very secure beacuse the form may be hacked...
How about defining allowd file extensions and size with in the PHP or Event handler?
Why i do get this error:
/Warning: stat failed for C:\WINNT\TEMP\php7D.tmp (errno=2 - No such file or directory) in c:\inetpub\wwwroot\anst\empldir\EmpsGrid.php on line 40/
When I try to upload image in to DB?
|
|
|
 |
feha
|
| Posted: 03/27/2002, 1:22 PM |
|
The error:
Why i do get this error:
/Warning: stat failed for C:\WINNT\TEMP\php7D.tmp (errno=2 - No such file or directory) in c:\inetpub\wwwroot\anst\empldir\EmpsGrid.php on line 40/
When I try to upload image in to DB?
IS FIXED... THE TEMP DIR DIDN'HAD USER PERMISSIONS... )
Other problems remains
|
|
|
 |
feha
|
| Posted: 03/27/2002, 1:55 PM |
|
Some images can be uploaded to mySQL db and some not?
How to get size of the image before upload that would help to keep aspect/ratio while displaying them?
How about uploading ZIP,SWF PDF ? etc...
Sorry to many questions I'm new to mySQL and CC
|
|
|
 |