Howdy, Stranger!

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

File Uploads without Flash
  • Hi,

    I'm currently making an application where users can multiple files, directories and drag and drop files as uploads. My questions are:
    1.) Is that can i use this application to select folders and subfolders or is it file specific?

    2.) Can i use this plugin without having flash as one of the requirements? Is there a javascript that i can use to invoke the file dialog box instead of restricting to the flash broswe button? The reason i need no flash is because my user base comes from all sorts of areas and some dont have flash install in their browser for some cooperate policies and it will be a hinderance to use this file uploads.

    I'm happy to make donations if you are able to assist me in my issues. I really want to use your plugin but i have a few restrictions which is stopping me to utilize it fully.

    Hope to hear from you soon.

    Thanks
    Vishal
  • 1) the basis of uploadify is flash. The flash upload system only allow files to be selected not folders.

    2) the backbone of uploadify is flash with a jQuery interface. Flash will always be a requirement with uploadify. Flash security dictates the browse dialog is activated via a flash event. Unfortunately a java invocation is not possible.
  • Hi Travis,

    Thanks for the reply. Can you please tell me what are the details that are passed into the upload.php. The issue i'm facing right now is understand your php since i dont know php. I have build my system in Coldfusion so it would be a great help if you can tell me what are the variables that are passed into the upload.php file so that i can work around that to upload my files to the server.

    Awaiting your reply
    Vishal
  • all variables sent are what you place in the scriptData option, folder option and if used the fileExt option. But the main one you want is what is stored in $_FILES array. I don't know what the equivalent is in cold fusion for $_FILES, but there have been plenty of examples posted in this forum.
  • Hi Travis,

    I seem to be having some issues with the file upload. I have a coldfusion script file that should process the file upload but for some reason that file is not being called. Below is my code where initiliase the fileInput feild with uploadify.

    CODE:
    -----
    $('##fileInput').uploadify({
    'uploader' : 'uploadify/uploadify.swf',
    'script' : 'jquery_fileupload.cfm',
    'cancelImg' : 'uploadify/cancel.png',
    'auto' : true,
    'multi' : true,
    wmode : 'transparent', // The wmode of the flash file
    queueID : 'fileQueue',
    'folder' : foldername,
    buttonImg : butt_selectFiles.gif',
    width:'102',
    height:'24',
    onError: function(errorObj)
    {
    alert(errorObj.info);
    }
    });


    Strange it may sound but yesterday i was able to access that file but now it seems to be not accessing that file any more.

    Your help will be appreciated in this.

    Thanks
    Vishal
  • just to add to that problem so it becomes clear. When i change the path of the script to something else it gives a HTTP Error message on the progress bar so which means it definitely is looking for that file but when the time comes for that file to process it, it doesn't. Yesterday i was trying to use that same script file and it was giving errors which means that it did work but for it to suddenly stop working is strange and really hard to debug. I hope you have any solutions to this.

    hoping to get a reply soon.

    thanks
    vishal
  • All I can tell is what I do in PHP which is:

    1. in onComplete alert the response data. With php most of the time when it finds an error it bugs out the script and echos a brief html coded error. Reading between the html code you can usually find the problem
    2. echo your variables at various stages in the upload script. When the script stops running and onComplete triggers, the alert function you put in there from 1. will tell you if you have received the variables correctly.

    OnError will only trigger when it receives a flash error.
  • You would never feel unbearable heat and sweat inside, because the Air Jordans is designed to be the best wear for this season.The same as many other
    Air Jordan Shoes,the release of the Air Yeezy Shoes also arouse fierce arguments among sneaker fans.