Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Cannot upload Files
  • Okay, so I verified my all my paths were correct. Added the special error alert code from one of the other post and that gave me the error that I'm getting http 406. So I modified my .htaccess file like the other post related to http 406 said to do and I still get the same error. I have been fighting with this for hours. All script and swf files are on same sub domain, I have literally read through every related post and I cant figure this out for the life of me. What could I be missing? And yes I did verify that my uploads directory was 777.


    <script type="text/javascript">
    $(function() {
    $('#file_upload').uploadify({
    'uploader' : '/scripts/uploadify/uploadify.swf',
    'script' : '/scripts/uploadify/uploadify.php',
    'cancelImg' : '/scripts/uploadify/cancel.png',
    'folder' : '/uploads',
    'multi' : true,
    'auto' : true,
    'fileExt' : '*.jpg;*.gif;*.png',
    'fileDesc' : 'Image Files (.JPG, .GIF, .PNG)',
    'queueID' : 'queue',
    'queueSizeLimit' : 3,
    'simUploadLimit' : 3,
    'removeCompleted': false,
    'scriptAccess': 'always',
    'onSelectOnce' : function(event,data) {
    $('#status-message').text(data.filesSelected + ' files have been added to the queue.');
    },
    'onAllComplete' : function(event,data) {
    console.log(data);
    $('#status-message').text(data.filesUploaded + ' files uploaded, ' + data.errors + ' errors.');
    },
    'onError' : function(a, b, c, d) {
    if (d.status == 404) {
    alert('Could not find upload script. Use a path relative');
    } else if (d.type === "HTTP") {
    console.log(d); // Log to Java Console
    alert('error '+d.type+": "+d.status);
    } else if (d.type === "File Size") {
    alert(c.name+' '+d.type+' Limit: '+Math.round(d.sizeLimit));
    } else {
    alert('error '+d.type+": "+d.text);
    }
    }
    });
    });
    </script>
  • i am having the same problem and wandered if you have solved this or found another solution. I am trying to create a site to allow users to upload a set number of photos and i have integrated the uploadify source into my own php framework and everything works apart from unable to load files, the button appears, i can click and select images and the progress bars appear, the upload folder has R/W access, the path is correct (i think, because if i change it, i get a path error message) and i cannot debug this!
  • HTTP 406 errors should be pretty hard to get. I don't think the issue is with uploadify in this case, there's probably a server side issue at play. Take a look at this for more information: http://www.webmasterworld.com/apache/3751387.htm