|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Uploading To Mysql Question...
on the grabfile.php why do i keep getting this error?
![]() You must enter both a description and file
__________________
Apache Expert |
|
#2
|
|||
|
|||
|
could you elaborate on your question?? it doesnt make much sense like that
|
|
#3
|
|||
|
|||
|
oh sorry i should have been more specific but mytch's blobbing mysql article i got the getfiles.php script working but after i hit the submit button, i get the "You must enter both a description and file" from grabfile.php . i wonder what have i done wrong. i will attach the file here to see why doesn't my script work like his.
|
|
#4
|
|||
|
|||
|
it means you must select a file to upload and a description about it, if you did make sure you named the description form field strDesc and the browse form field fileUpload.
__________________
![]() ![]() "Only Linux users see the end of crashes." - Pl4t0 |
|
#5
|
|||
|
|||
|
Quote:
i entered information in both fields, but i am a bit confused about the rest of your post. could you break that down in dummy terms. ![]() Last edited by asp_man : October 30th, 2002 at 06:15 PM. |
|
#6
|
|||
|
|||
|
I think what he means is, did you make sure that your "Description" text field (in the upload form) is named "strDesc", and that the field in which you select your file to upload, is named "fileUpload".
Can you post your "<form....>" section?
__________________
____________________________________________ Developer Shed Weekly Writer | DevArticles Forum Moderator Build Your Own KlipFolio Klip With PHP FrankManno.com - Under Construction Design Interactive Group - Under Construction |
|
#7
|
|||
|
|||
|
Quote:
ok i can do that but which file though sorry? ![]() |
|
#8
|
|||
|
|||
|
the file with the form which asks you to select a file & enter a description
|
|
#9
|
|||
|
|||
|
heres the file
![]() |
|
#10
|
|||
|
|||
|
Okay, I took at look at the form fields, and they seem to be correct. Onto your PHP configuration:
Do you have your "register_globals" set to off? You'll need to check, and if so, you'll have to modify the code to make use of the superglobal arrays: $_POST, $_GET, etc... For more info, check out the php manual. |
|
#11
|
|||
|
|||
|
ok guys it will let me upload and whatnot but when i click on the link to download the file theres a problem. the image is blank and it shows the description and all but it shows nothing. what could be causing it. i am on a windows 2000 machine.
Last edited by asp_man : November 3rd, 2002 at 01:02 AM. |
|
#12
|
|||
|
|||
|
bump
![]() |
|
#13
|
|||
|
|||
|
What code are you using to download the files? The scripts you posted above were only for storing the file in the db.
|
|
#14
|
|||
|
|||
|
Quote:
showfiles.php PHP Code:
|
|
#15
|
|||
|
|||
|
downloadfile.php
PHP Code:
|
![]() |
| Viewing: Dev Articles Community Forums > Databases > MySQL Development > Uploading To Mysql Question... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
Linear Mode![]() |