Welcome! Log In Create A New Profile

Advanced

uploading file

Posted by 78042968 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
uploading file
July 03, 2013 01:59AM
Hai Mac. This is not about the project but I need your help here where I am trying upload images on folder pics under my www/ folder and save image name on myphpadmin. Can you help me with the code
avatar Re: uploading file
July 03, 2013 09:31AM
Google is your friend thumbs up

click

____________________________________________Nazi Coder____________________________________________

I'm not antisocial, I'm just not user friendly

"It's not a bug; it's an undocumented feature!" ~ some unknown Microsoft developer
Re: uploading file
July 03, 2013 08:02PM
I have tried as much as I can but no solution

<?php
if ($_FILES["file"]["error"] > 0)
  {
  echo "Error: " . $_FILES["file"]["error"] . "<br>";
  }
else
  {
  echo "Upload: " . $_FILES["file"]["name"] . "<br>";
  echo "Type: " . $_FILES["file"]["type"] . "<br>";
  echo "Size: " . ($_FILES["file"]["size"] / 1024) . " kB<br>";
  echo "Stored in: " . $_FILES["file"]["tmp_name"];
  }
?>
With this I can browse the file and hit upload but I don't see pics on the temp folder
avatar Re: uploading file
July 03, 2013 09:37PM
Have you tried ftp'ing them up!

____________________________________________Nazi Coder____________________________________________

I'm not antisocial, I'm just not user friendly

"It's not a bug; it's an undocumented feature!" ~ some unknown Microsoft developer
Re: uploading file
July 04, 2013 10:27PM
Nop. I don't know how it works
avatar Re: uploading file
July 05, 2013 09:08AM
I agree with Shado. FTP them to the server. You can get a program called WinSCP to do this or something like WinFTP Lite.
avatar Re: uploading file
July 05, 2013 09:28AM
I think you are misunderstanding how image in a db works. You cant actually store the images in a db, you can only store their links. Your images still has to be in a file on your server.

Download Filezilla and use that to upload your images.

____________________________________________Nazi Coder____________________________________________

I'm not antisocial, I'm just not user friendly

"It's not a bug; it's an undocumented feature!" ~ some unknown Microsoft developer
Re: uploading file
July 05, 2013 09:47PM
what i was trying to do is tosave images on the folder named pics and save there names on the db
Re: uploading file
July 09, 2013 10:44AM
ok - I see what you are trying to do.

Please send the code and possible the error msg. there is no point us giving you the code, you wont learn anything if we do that.
Sorry, only registered users may post in this forum.

Click here to login