LoginLogin  Blog About
Search:

Support » Knowledge Base » Files »

Files are not uploading

When uploading one or several files using WebAsyst Files you may receive a message of kind "1 file(s) successfully uploaded", but the uploaded files will not actually appear in the destination folder. This can happen if you have WebAsyst Files installed on your own/dedicated server or on a virtual web hosting. Possible causes of this problem are explained below.

  1. The file you are trying to upload is too large. Either change the configuration of your web server as described in the appropriate article or  upload  only smaller files to your account. E.g., you may compress your file to a multi-volume ZIP archive and upload its parts one by one.
  2. Note: Users of the online services cannot upload files over 200 MB in size.
  3. Module mod_security for web server Apache is enabled. It may force the server to return error code 406 to the file uploading script. To rectify this, disable module mod_security by adding the following lines to file .htaccess located in the WebAsyst root directory:
    SecFilterEngine Off
    SecFilterScanPOST Off
    If you fail to disable the module by editing file .htaccess, contact you server administrator to have mod_security disabled for your web hosting account.
  4. PHP sessions with specified IDs cannot be created on your server. To verify this assumption, create a test PHP file (e.g. test.php) with the following contents:
    <?php
    if (isset($_GET['PHPSESSID'])) {
      session_id($_GET['PHPSESSID']);
      session_start();
      if (isset($_SESSION['test_upload'])) {
        $result = '<font color="green">Session successfully created</font>';
      } else {
        $result = '<font color="red">Error creating session</font>';
      }
      echo $result;
    } else {
      session_start();
      $_SESSION['test_upload'] = true;
      $url = "http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].
    "?PHPSESSID=".session_id();
      echo <<<HTML
    Please copy this URL and open it with another browser: <br />
    <a href="{$url}">{$url}</a>
    HTML;
    }
    ?>

    Upload file test.php to your server and enter its URL in a web browser. A message of the following kind should appear:

    Copy this URL and open it with another browser: 
    http://domain.com/test.php?PHPSESSID=7aa3b0883d574a6c61126f34695a2b91

    Copy the URL of the generated link, run another browser (if your are currently using Internet Explorer, open Firefox, Chrome, Safari or Opera etc.) and paste the copied URL to its address bar. The page that opens will display a message saying either "Session successfully created" or "Error creating session". In the latter case contact your web hosting company support team or the server administrator to have the server re-configured accordingly.