Jump to content

Recommended Posts

Hey i was wondering if you guys could help me as i would appreciate it

 

i had gotten this upload script from a friend and said it worked but when i try it on my website and changed some of the settings i get problems

 

Warning: move_uploaded_file(/www/stealth-force.freehostia.com/stealth/public_html/clanfiles/uploads/Raiden.SF.Stealth Force.scm): failed to open stream: No such file or directory in /home/www/stealth-force.freehostia.com/uploaderScripts.php on line 72

 

Warning: move_uploaded_file(): Unable to move '/tmp/phpVX73ne' to '/www/stealth-force.freehostia.com/stealth/public_html/clanfiles/uploads/Raiden.SF.Stealth Force.scm' in /home/www/stealth-force.freehostia.com/uploaderScripts.php on line 72

 

any help would be appreciated

 

 

this is what is on LINE 72 before and after

 

70  $fileName = $directory.$target;
         71      if(!file_exists($fileName) || $overrideFile == 1) {
LINE  72                  if(move_uploaded_file($_FILES['userfile']['tmp_name'][0], $directory.$target)) {
        73               echo $fontString.'<font size="4"><b>Upload File - Successfully</b></font>'.$navigation.'
        74                   The file: <font color="#1C86EE">'.$target.'</font> was successfully uploaded.<br><br>
        75                    File URL: <a href="http://stealth-force.freehostia.com/clanfiles/uploads/'.$target.'">
       76                     http://stealth-force.freehostia.com/clanfiles/uploads/'.$target.'</a>'.$Console;

                       @mysql_query("INSERT INTO od_files SET uid = '".$rowlog['id']."', filename = '".$target."', size = '".$_FILES['userfile']['size'][0]."', 

Link to comment
https://forums.phpfreaks.com/topic/84433-upload-scripts/
Share on other sites

Check your $directory location. I think your path is wrong.

 

Unable to move '/tmp/phpVX73ne' to

--> '/www/stealth-force.freehostia.com/stealth/public_html/clanfiles/uploads/Raiden.SF.Stealth Force.scm'

in

--> /home/www/stealth-force.freehostia.com/uploaderScripts.php

 

Will.

Link to comment
https://forums.phpfreaks.com/topic/84433-upload-scripts/#findComment-430236
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.