Closed Thread
Results 1 to 7 of 7

Thread: ALERT - uploaded file contains binary data - file dropped

  1. #1
    ftpangel is offline x10Hosting Member ftpangel is an unknown quantity at this point
    Join Date
    May 2008
    Posts
    10

    ALERT - uploaded file contains binary data - file dropped

    Hi,

    By the title of this thread, I believe you know what I'm about to ask. I have been able to upload images through php before. But now, I get this error in the Error Log and don't know why. Could you please help me figure this out?

    I also get an accompanying error:
    File does not exist: /home/ftpangel/public_html/404.shtml, referer: http://flight.elementfx.com/index.ph...m482f4666ea440

    domain: flight.elementfx.com
    parked domain: angelflight.ab.ca

    Thank you.

  2. #2
    Fedlerner's Avatar
    Fedlerner is offline Retired Fedlerner is an unknown quantity at this point
    Join Date
    Aug 2006
    Location
    Buenos Aires, Argentina
    Posts
    12,923

    Re: ALERT - uploaded file contains binary data - file dropped

    What script are you using?
    Please link me to the script so I can test it. PM me if you don't want it to be public.
    Federico Lerner
    Former x10Hosting Administrator - Staff Manager

  3. #3
    ftpangel is offline x10Hosting Member ftpangel is an unknown quantity at this point
    Join Date
    May 2008
    Posts
    10

    Re: ALERT - uploaded file contains binary data - file dropped

    Hi, no secrets here...i'm using the following page to save my images to the website that is using Exponent CMS

    <?php

    if (!defined('EXPONENT')) exit('');
    $item = null;
    if (isset($_POST['id'])) {
    $item = $db->selectObject('imagemanageritem','id='.intval($_PO ST['id']));
    if ($item) {
    $loc = unserialize($item->location_data);
    }
    }
    if ( ($item == null && exponent_permissions_check('post',$loc)) ||
    ($item != null && exponent_permissions_check('edit',$loc))
    ) {
    // unset the image cache
    exponent_sessions_clearAllUsersSessionCache('image managermodule');
    $item = imagemanageritem::update($_POST,$item);
    $item->location_data = serialize($loc);

    if (!isset($item->id)) {
    // check for real images.
    $filenew = $_FILES['file']['tmp_name'];
    $fileup = getimagesize ( $filenew );

    if (
    $fileup[2] > 0 &&
    $fileup[1] > 0) {
    if (!defined('SYS_FILES')) include_once(BASE.'subsystems/files.php');

    $directory = 'files/imagemanagermodule/'.$loc->src;
    $fname = null;

    if (exponent_files_uploadDestinationFileExists($direc tory,'file')) {
    // Auto-uniqify Logic here
    $fileinfo = pathinfo($_FILES['file']['name']);
    $fileinfo['extension'] = '.'.$fileinfo['extension'];
    do {
    $fname = basename($fileinfo['basename'],$fileinfo['extension']).uniqid('').$fileinfo['extension'];
    } while (file_exists(BASE.$directory.'/'.$fname));
    }

    $file = file::update('file',$directory,null,$fname);
    if (is_object($file)) {
    $item->file_id = $db->insertObject($file,'file');
    // Make thumbnail?
    $db->insertObject($item,'imagemanageritem');

    exponent_flow_redirect();
    } else {
    // If file::update() returns a non-object, it should be a string. That string is the error message.
    $post = $_POST;
    $post['_formError'] = $file;
    exponent_sessions_set('last_POST',$post);
    header('Location: ' . $_SERVER['HTTP_REFERER']);
    }
    }
    } else {
    $db->updateObject($item,'imagemanageritem');
    exponent_flow_redirect();
    }
    } else {
    echo SITE_403_HTML;
    }
    ?>

  4. #4
    Corey's Avatar
    Corey is offline VPS Migration Professional Corey is a glorious beacon of lightCorey is a glorious beacon of light
    Join Date
    Dec 2004
    Location
    Northfield, NH
    Posts
    17,151

    Re: ALERT - uploaded file contains binary data - file dropped

    Login to your account panel here: http://x10hosting.com/account and upgrade your PHP version to intermediate.

    -Corey
    Corey Arbogast | CEO
    █ 888-X10-9668 - corey[@]x10hosting.com
    x10Hosting - Giving Away Hosting Since 2004
    Premium Hosting | VPS Services

  5. #5
    ftpangel is offline x10Hosting Member ftpangel is an unknown quantity at this point
    Join Date
    May 2008
    Posts
    10

    Re: ALERT - uploaded file contains binary data - file dropped

    Awesome, Corey, thank you for the prompt reply! I honestly appreciate it. I have done what you asked. I guess I'll see if they grant my request. Nice avatar, by the way!

  6. #6
    Corey's Avatar
    Corey is offline VPS Migration Professional Corey is a glorious beacon of lightCorey is a glorious beacon of light
    Join Date
    Dec 2004
    Location
    Northfield, NH
    Posts
    17,151

    Re: ALERT - uploaded file contains binary data - file dropped

    Thanks ;)

    We grant all requests for intermediate. Let us know if it isn't working tomorrow still.

    -Corey
    Corey Arbogast | CEO
    █ 888-X10-9668 - corey[@]x10hosting.com
    x10Hosting - Giving Away Hosting Since 2004
    Premium Hosting | VPS Services

  7. #7
    ftpangel is offline x10Hosting Member ftpangel is an unknown quantity at this point
    Join Date
    May 2008
    Posts
    10

    Thumbs up Re: ALERT - uploaded file contains binary data - file dropped

    :happysad:;) YOU ARE AWESOME...it works!!!!!!! Thanks so much Corey! You're the MAN!

Closed Thread

Similar Threads

  1. Replies: 2
    Last Post: 08-17-2008, 08:30 PM
  2. Internal Serve Error
    By xaakx in forum Free Hosting
    Replies: 6
    Last Post: 02-03-2008, 08:02 AM
  3. Replies: 8
    Last Post: 12-03-2007, 04:12 PM
  4. php version
    By loveispoison in forum Free Hosting
    Replies: 10
    Last Post: 11-21-2007, 10:53 AM
  5. uploaded file contains binary data
    By chongkolai in forum Free Hosting
    Replies: 2
    Last Post: 09-24-2007, 11:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers