[CLOSED] Multiupload getFile(n)

  1. #1

    [CLOSED] Multiupload getFile(n)

    Hi All,

    I checked documentation http://www.calvarycch.org/content/SW...ation/#getFile
    and I get file object

    {
    	id : string,			// SWFUpload file id, used for starting or cancelling and upload
    	index : number,			// The index of this file for use in getFile(i)
    	name : string,			// The file name. The path is not included.
    	size : number,			// The file size in bytes
    	type : string,			// The file type as reported by the client operating system
    	creationdate : Date,		// The date the file was created
    	modificationdate : Date,	// The date the file was last modified
    	filestatus : number,		// The file's current status. Use SWFUpload.FILE_STATUS to interpret the value.
    	post : object			// The post params that will be sent with this file (compiled from the post_params setting and any params added with the addFileParam function
    	
    }
    Is there any way to get file binary file data on client?

    Thank you.
    Last edited by fabricio.murta; Feb 16, 2016 at 3:06 AM.
  2. #2
    Hello @rbtceo!

    Unfortunately the underlying flash framework does not export a method to return the selected file's data. It is only used during POST, internally by the flash component.

    Well, that's the part of the bad news.

    Good news is that you can probably do it with the information you have using JavaScript's FileReader.

    I hope this helps!

    If MultiUpload does not work with FileReader, you may try using the FileUploadField instead. According to this stackoverflow thread, you can use FileReader with it.

    For FileUploadField, you get the file to-be-uploaded file handle via: App.FileUploadField1.fileInputEl.dom.files.
    Fabrício Murta
    Developer & Support Expert
  3. #3
    Thank you.

Similar Threads

  1. [CLOSED] MultiUpload
    By Andrey in forum 3.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 01, 2015, 3:26 PM
  2. MultiUpload not upload mp3 nor pdf
    By Alaswad in forum 2.x Help
    Replies: 5
    Last Post: Sep 21, 2014, 5:39 AM
  3. [CLOSED] MultiUpload error
    By CPA1158139 in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Sep 02, 2014, 4:44 PM
  4. [CLOSED] Is MultiUpload secure ?
    By matt in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 09, 2014, 4:02 AM
  5. MultiUpload how to access to PostParams
    By xtremexploit in forum 2.x Help
    Replies: 2
    Last Post: Oct 31, 2013, 9:09 PM

Tags for this Thread

Posting Permissions