Koozali.org: home of the SME Server

upload files php in sme 6.0

gallo_miguel

upload files php in sme 6.0
« on: January 03, 2006, 02:31:50 AM »
Hi, I've been having troubles traying to upload images (jpg) to my sme 6 server with a php script. i just find a new file in /tmp that soppouse to be copied to my primary ibay.

any idea ?


thanks in advance.


mgallo

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org

gallo_miguel

still doesnt work
« Reply #2 on: January 03, 2006, 04:34:01 PM »
I allready run this lines but the problem persist.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: upload files php in sme 6.0
« Reply #3 on: January 03, 2006, 04:39:51 PM »
Quote from: "gallo_miguel"
Hi, I've been having troubles traying to upload images (jpg) to my sme 6 server with a php script. i just find a new file in /tmp that soppouse to be copied to my primary ibay.

any idea ?


I'm pretty sure you'll find that the problem is in your script. Be sure to check your log files for php script errors. A php scripting forum might be able to better help you.

gallo_miguel

upload files php in sme 6.0
« Reply #4 on: January 03, 2006, 05:12:29 PM »
is a very simple script, this script works in sme server 5, I hope someone can help.

thanks.

mgallo

if ($nPantalla==1){
   
   if(strlen($userfile_name)>0){
      if (!copy($userfile, "imgNoticia/"$userfile_name)) {
        printf("Error al subir el archivo de libra...");      
               
      }else{
         $sFile = $userfile_name;
      }
   }
}

Offline albatroz

  • *****
  • 159
  • +0/-0
upload files php in sme 6.0
« Reply #5 on: January 16, 2006, 12:12:07 PM »
If you are working with a plain just installed SME 6 server you may try this
script
http://tech.tailoredweb.com/simple-upload-53.php

It worked for me partially as uploads worked fine but not deletion of files...

However it stopped working when I applied the PHP version 4.3.10 upgrade from
http://no.longer.valid/phpwiki/index.php/SME6.0.1Contribs