Unstoppable Domains โ€” Expired Auctions

Image upload failure

SpaceshipSpaceship
Watch
Impact
22
whats the problem?? can anyone tell me??

Warning: move_uploaded_file(/home/kaxking/public_html/userimages/): failed to open stream: Is a directory in /home/kadking/public_html/admin/graphics_images.php on line 42

Warning: move_uploaded_file(): Unable to move '/tmp/phpP18fzK' to '/home/kaxking/public_html/userimages/' in /home/kaxking/public_html/admin/graphics_images.php on line 42
Discover_miles.bmp did not upload!
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
looking at those errors the files are not uploading because your not specifiying the file to to upload to, your trying to turn a folder into a file

say youve got the file color.gif
and you want to upload to /home/account/www/images

when you upload the file the contents of the file gets uploaded into a php tmp file to wherever and then you have to copy/move the uploaded file to a new folder and file name

so you need to make a not of the filename in your script and then on your function you need to add the file name so say color.gif was in a vairable called $file

you need to add onto the end of the path $file
so for example
/home/account/www/images/$file

then it should copy the file into color.gif

php doesnt actually copy the file it copys the contents of the file

well thats how i understand it
 
0
•••
i sort of understand most of it accept this.
adam_uk said:
then it should copy the file into color.gif

actually what I did was to use the browse and upload function within the admin panel to do the loading.
and it gives the error message!
no idea of PHP!
 
0
•••
basically when you upload a file it makes a note of the size file name and tmp name that its given, the script will then read the contents of the file (it doesnt actually copy the file) and then when its uploaded it places the contents into a tmp file when its uploaded the script will then make and empty file called the file name you uploaded it then writes the contents of the tmp file to the new empty file. so the empty file gets the contents of the file you just uploaded so it appears as an exact copy

so with that script your not actually specifiying the file you want to write to its set as a directory.
 
0
•••
Appraise.net
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomainEasy โ€” Zero Commission
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back