Rinards Posted December 27, 2010 Report Share Posted December 27, 2010 (edited) IR problēma tāda, atradu upload skriptu kurš man nestrādā. <!-- The data encoding type, enctype, MUST be specified as below --> <form enctype="multipart/form-data" action="_URL_" method="POST"> <!-- MAX_FILE_SIZE must precede the file input field --> <input type="hidden" name="MAX_FILE_SIZE" value="30000" /> <!-- Name of input element determines name in $_FILES array --> Send this file: <input name="userfile" type="file" /> <input type="submit" value="Send File" /> </form> <?php // In PHP versions earlier than 4.1.0, $HTTP_POST_FILES should be used instead // of $_FILES. $uploaddir = 'Files/'; $uploadfile = $uploaddir . basename($_FILES['userfile']['name']); echo '<pre>'; if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) { echo "File is valid, and was successfully uploaded.\n"; } else { echo "Possible file upload attack!\n"; } echo 'Here is some more debugging info:'; print_r($_FILES); print "</pre>"; ?> Kas varētu būt nepareizi? Un vai drīkst plugina piemera linku no manas majas lapas iekopēt kur tas atrodas? Edited December 27, 2010 by Rinards Quote Link to comment Share on other sites More sharing options...
mefisto Posted December 27, 2010 Report Share Posted December 27, 2010 Kā tieši izpaužas "nestrādā" ? Quote Link to comment Share on other sites More sharing options...
Rinards Posted December 27, 2010 Author Report Share Posted December 27, 2010 (edited) Kā tieši izpaužas "nestrādā" ? neuploado failu, met erroru. Vai ir iespēja šeit postot linku? nedabūšu pa biksēm? Vnk zinu ka daudzkur nevar! Edited December 27, 2010 by Rinards Quote Link to comment Share on other sites More sharing options...
daGrevis Posted December 27, 2010 Report Share Posted December 27, 2010 Čau! Neko nesapratu. Quote Link to comment Share on other sites More sharing options...
mad182 Posted December 27, 2010 Report Share Posted December 27, 2010 Nu ar tā kļūdas paziņojuma saturu jau tā kā vajadzēja sākt. Quote Link to comment Share on other sites More sharing options...
daGrevis Posted December 27, 2010 Report Share Posted December 27, 2010 Bet... http://net.tutsplus.com/tutorials/php/online-file-storage-with-php/ Quote Link to comment Share on other sites More sharing options...
mefisto Posted December 27, 2010 Report Share Posted December 27, 2010 Rinards, visos devel forumos , irc kanālos un mail-listēs links uz dzīvu lapu ir pat ļoti vēlams. Bet ne par to ir runa. Tu tā arī neuzrakstīji, kāda kļūda tieši parādās ! Quote Link to comment Share on other sites More sharing options...
Blitz Posted December 27, 2010 Report Share Posted December 27, 2010 Vārbūt ne tev, bet daudziem citiem šeit esošajiem, kautko izteiks "errora" teksts kas tieši vai netieši norāda uz problēmas (nestrādāšanas) cēloni. Quote Link to comment Share on other sites More sharing options...
Roberts.R Posted December 28, 2010 Report Share Posted December 28, 2010 Ticu, ka problēma meklējama PHP konfigurācijā - faila limits un/vai taimauts. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.