Jump to content

Recommended Posts

ok, i have a weird issue, my uploader is so simple, yet it deosnt like to upload anything other then text and pics, ive tried vids, music, pdf's and nothing works.. text(.txt,.doc) and all kinds of pics work, any know why?

 

if(isset($_POST['upload'])){
$photon = str_replace(" ","_", $_FILES['ph']['name']);
if (copy($_FILES['ph']['tmp_name'],"members/$user2/".$photon)) {

    @unlink($_FILES['ph']['tmp_name']);

$uploader= "Upload Successfull!";

  } else {
      unlink($_FILES['ph']['tmp_name']);
   $uploader= "There was an error uploading your file. Please try again";
}
}else{
$uploader= "<p align=center><form enctype=multipart/form-data method=post>File:<input type=file name=ph><input type=submit name=upload value=Upload></form></p>";
}[code]

[/code]

Link to comment
https://forums.phpfreaks.com/topic/87476-uploading-anything-other-then-textpics/
Share on other sites

http://us2.php.net/manual/en/features.file-upload.errors.php

 

take a look at error = 1

 

your upload is exceeding your max upload size

 

Now you said you could upload txt files i'm assuming small, make sure its smaller than your size if it is your host might be restricting uploads for security

ok well in php.in i get this, i guess i should contact my host and have them lift that size

 

register_globals = Off

 

zend_extension="/usr/local/IonCube/ioncube_loader_lin_4.4.so"

zend_extension_ts="/usr/local/IonCube/ioncube_loader_lin_4.4_ts.so"

 

[Zend]

zend_optimizer.optimization_level=15

zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.0

zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.0

zend_optimizer.version=3.3.0

 

 

zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so

zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so

 

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.