[jira] [Commented] (CB-200) FileTransfer should support uploading multiple files in one HTTP request
[ https://issues.apache.org/jira/browse/CB-200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14387912#comment-14387912 ] Michael Rhema commented on CB-200: -- it actually works. i had issues with my server side code...thnx. [~cfjedimaster]. u helped out too on twitter. I dont think xhr2 has a native file .slice() support. > FileTransfer should support uploading multiple files in one HTTP request > > > Key: CB-200 > URL: https://issues.apache.org/jira/browse/CB-200 > Project: Apache Cordova > Issue Type: Improvement > Components: Plugin File Transfer >Affects Versions: 1.3.0 > Environment: Windows XP, Android, Lenovo ThinkPad >Reporter: Matt Accola >Assignee: Andrew Grieve >Priority: Trivial > > FileTransfer only allows one file to be uploaded at a time. Should allow > multiple files to be uploaded at once. > This might be necessary if the server-side service requires all files to be > submitted at once to ensure any operations on the files are atomic. > This question has been asked on the phonegap Google Group, > http://groups.google.com/group/phonegap/browse_thread/thread/bdc40098c2954870. > (Update: Since this requires a UI change for parity, I've added more > components and moved it out of 1.7. This should be added to the Roadmap, so > I'm leaving it assigned to myself so I'm reminded to do this - Joe) -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-200) FileTransfer should support uploading multiple files in one HTTP request
[ https://issues.apache.org/jira/browse/CB-200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14387885#comment-14387885 ] Michael Rhema commented on CB-200: -- I tried ur example, I actually implemented it before i saw it. My app kept using up memory and crashing. It didn't work. Have u figured it out? > FileTransfer should support uploading multiple files in one HTTP request > > > Key: CB-200 > URL: https://issues.apache.org/jira/browse/CB-200 > Project: Apache Cordova > Issue Type: Improvement > Components: Plugin File Transfer >Affects Versions: 1.3.0 > Environment: Windows XP, Android, Lenovo ThinkPad >Reporter: Matt Accola >Assignee: Andrew Grieve >Priority: Trivial > > FileTransfer only allows one file to be uploaded at a time. Should allow > multiple files to be uploaded at once. > This might be necessary if the server-side service requires all files to be > submitted at once to ensure any operations on the files are atomic. > This question has been asked on the phonegap Google Group, > http://groups.google.com/group/phonegap/browse_thread/thread/bdc40098c2954870. > (Update: Since this requires a UI change for parity, I've added more > components and moved it out of 1.7. This should be added to the Roadmap, so > I'm leaving it assigned to myself so I'm reminded to do this - Joe) -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-200) FileTransfer should support uploading multiple files in one HTTP request
[ https://issues.apache.org/jira/browse/CB-200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14366099#comment-14366099 ] Raymond Camden commented on CB-200: --- Vincent, wouldn't your example send the XHR immediately? I mean not wait for each file. > FileTransfer should support uploading multiple files in one HTTP request > > > Key: CB-200 > URL: https://issues.apache.org/jira/browse/CB-200 > Project: Apache Cordova > Issue Type: Improvement > Components: Plugin File Transfer >Affects Versions: 1.3.0 > Environment: Windows XP, Android, Lenovo ThinkPad >Reporter: Matt Accola >Assignee: Andrew Grieve >Priority: Trivial > > FileTransfer only allows one file to be uploaded at a time. Should allow > multiple files to be uploaded at once. > This might be necessary if the server-side service requires all files to be > submitted at once to ensure any operations on the files are atomic. > This question has been asked on the phonegap Google Group, > http://groups.google.com/group/phonegap/browse_thread/thread/bdc40098c2954870. > (Update: Since this requires a UI change for parity, I've added more > components and moved it out of 1.7. This should be added to the Roadmap, so > I'm leaving it assigned to myself so I'm reminded to do this - Joe) -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-200) FileTransfer should support uploading multiple files in one HTTP request
[ https://issues.apache.org/jira/browse/CB-200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14366085#comment-14366085 ] Raymond Camden commented on CB-200: --- Just ran into this need as well. > FileTransfer should support uploading multiple files in one HTTP request > > > Key: CB-200 > URL: https://issues.apache.org/jira/browse/CB-200 > Project: Apache Cordova > Issue Type: Improvement > Components: Plugin File Transfer >Affects Versions: 1.3.0 > Environment: Windows XP, Android, Lenovo ThinkPad >Reporter: Matt Accola >Assignee: Andrew Grieve >Priority: Trivial > > FileTransfer only allows one file to be uploaded at a time. Should allow > multiple files to be uploaded at once. > This might be necessary if the server-side service requires all files to be > submitted at once to ensure any operations on the files are atomic. > This question has been asked on the phonegap Google Group, > http://groups.google.com/group/phonegap/browse_thread/thread/bdc40098c2954870. > (Update: Since this requires a UI change for parity, I've added more > components and moved it out of 1.7. This should be added to the Roadmap, so > I'm leaving it assigned to myself so I'm reminded to do this - Joe) -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-200) FileTransfer should support uploading multiple files in one HTTP request
[ https://issues.apache.org/jira/browse/CB-200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14347081#comment-14347081 ] Jeremy Belolo commented on CB-200: -- +1 here. I didn't find any easy way to upload multiple files at once with a Cordova app ! > FileTransfer should support uploading multiple files in one HTTP request > > > Key: CB-200 > URL: https://issues.apache.org/jira/browse/CB-200 > Project: Apache Cordova > Issue Type: Improvement > Components: Plugin File Transfer >Affects Versions: 1.3.0 > Environment: Windows XP, Android, Lenovo ThinkPad >Reporter: Matt Accola >Assignee: Andrew Grieve >Priority: Trivial > > FileTransfer only allows one file to be uploaded at a time. Should allow > multiple files to be uploaded at once. > This might be necessary if the server-side service requires all files to be > submitted at once to ensure any operations on the files are atomic. > This question has been asked on the phonegap Google Group, > http://groups.google.com/group/phonegap/browse_thread/thread/bdc40098c2954870. > (Update: Since this requires a UI change for parity, I've added more > components and moved it out of 1.7. This should be added to the Roadmap, so > I'm leaving it assigned to myself so I'm reminded to do this - Joe) -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-200) FileTransfer should support uploading multiple files in one HTTP request
[ https://issues.apache.org/jira/browse/CB-200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13988521#comment-13988521 ] Vincent Pizzo commented on CB-200: -- Just posting this in case anyone wants a quick workaround using xhr2 to upload multiple files (sorry the example is in coffeescript and most error handling is taken out but the general gist is there) formData = new FormData() window.resolveLocalFileSystemURL fileUri, (fileEntry) -> fileEntry.file (file) -> reader = new FileReader() reader.onloadend = (fileReadResult) -> data = new Uint8Array fileReadResult.target.result formData.append 'formParamKey', new Blob([data], type: file.type), file.name xhr = new XMLHttpRequest() xhr.open 'POST', url, true xhr.send formData reader.readAsArrayBuffer file > FileTransfer should support uploading multiple files in one HTTP request > > > Key: CB-200 > URL: https://issues.apache.org/jira/browse/CB-200 > Project: Apache Cordova > Issue Type: Improvement > Components: Plugin File Transfer >Affects Versions: 1.3.0 > Environment: Windows XP, Android, Lenovo ThinkPad >Reporter: Matt Accola >Assignee: Andrew Grieve >Priority: Trivial > > FileTransfer only allows one file to be uploaded at a time. Should allow > multiple files to be uploaded at once. > This might be necessary if the server-side service requires all files to be > submitted at once to ensure any operations on the files are atomic. > This question has been asked on the phonegap Google Group, > http://groups.google.com/group/phonegap/browse_thread/thread/bdc40098c2954870. > (Update: Since this requires a UI change for parity, I've added more > components and moved it out of 1.7. This should be added to the Roadmap, so > I'm leaving it assigned to myself so I'm reminded to do this - Joe) -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (CB-200) FileTransfer should support uploading multiple files in one HTTP request
[ https://issues.apache.org/jira/browse/CB-200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13987755#comment-13987755 ] Vincent Pizzo commented on CB-200: -- I would argue that this is not a trivial issue and is a major limitation of the FileTransfer api. As for an API proposal this would be simple enough: var options = new FileUploadOptions(); //allow this options.files = [{fileKey: "file", fileName: imageURI.substr(imageURI.lastIndexOf('/')+1)}]; //as well as this options.fileKey="file"; options.fileName=imageURI.substr(imageURI.lastIndexOf('/')+1); options.mimeType="image/jpeg"; var params = {}; params.value1 = "test"; params.value2 = "param"; options.params = params; var ft = new FileTransfer(); ft.upload(imageURI, encodeURI("http://some.server.com/upload.php";), win, fail, options); > FileTransfer should support uploading multiple files in one HTTP request > > > Key: CB-200 > URL: https://issues.apache.org/jira/browse/CB-200 > Project: Apache Cordova > Issue Type: Improvement > Components: Plugin File Transfer >Affects Versions: 1.3.0 > Environment: Windows XP, Android, Lenovo ThinkPad >Reporter: Matt Accola >Assignee: Andrew Grieve >Priority: Trivial > > FileTransfer only allows one file to be uploaded at a time. Should allow > multiple files to be uploaded at once. > This might be necessary if the server-side service requires all files to be > submitted at once to ensure any operations on the files are atomic. > This question has been asked on the phonegap Google Group, > http://groups.google.com/group/phonegap/browse_thread/thread/bdc40098c2954870. > (Update: Since this requires a UI change for parity, I've added more > components and moved it out of 1.7. This should be added to the Roadmap, so > I'm leaving it assigned to myself so I'm reminded to do this - Joe) -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (CB-200) FileTransfer should support uploading multiple files in one HTTP request
[ https://issues.apache.org/jira/browse/CB-200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13959002#comment-13959002 ] Andrew Grieve commented on CB-200: -- I think this is sitting at a "contributions welcome" state. > FileTransfer should support uploading multiple files in one HTTP request > > > Key: CB-200 > URL: https://issues.apache.org/jira/browse/CB-200 > Project: Apache Cordova > Issue Type: Improvement > Components: Plugin File Transfer >Affects Versions: 1.3.0 > Environment: Windows XP, Android, Lenovo ThinkPad >Reporter: Matt Accola >Assignee: Andrew Grieve >Priority: Trivial > > FileTransfer only allows one file to be uploaded at a time. Should allow > multiple files to be uploaded at once. > This might be necessary if the server-side service requires all files to be > submitted at once to ensure any operations on the files are atomic. > This question has been asked on the phonegap Google Group, > http://groups.google.com/group/phonegap/browse_thread/thread/bdc40098c2954870. > (Update: Since this requires a UI change for parity, I've added more > components and moved it out of 1.7. This should be added to the Roadmap, so > I'm leaving it assigned to myself so I'm reminded to do this - Joe) -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Commented] (CB-200) FileTransfer should support uploading multiple files in one HTTP request
[ https://issues.apache.org/jira/browse/CB-200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13958996#comment-13958996 ] David Pesce commented on CB-200: Any conclusions/headway on this? > FileTransfer should support uploading multiple files in one HTTP request > > > Key: CB-200 > URL: https://issues.apache.org/jira/browse/CB-200 > Project: Apache Cordova > Issue Type: Improvement > Components: Plugin File Transfer >Affects Versions: 1.3.0 > Environment: Windows XP, Android, Lenovo ThinkPad >Reporter: Matt Accola >Assignee: Andrew Grieve >Priority: Trivial > > FileTransfer only allows one file to be uploaded at a time. Should allow > multiple files to be uploaded at once. > This might be necessary if the server-side service requires all files to be > submitted at once to ensure any operations on the files are atomic. > This question has been asked on the phonegap Google Group, > http://groups.google.com/group/phonegap/browse_thread/thread/bdc40098c2954870. > (Update: Since this requires a UI change for parity, I've added more > components and moved it out of 1.7. This should be added to the Roadmap, so > I'm leaving it assigned to myself so I'm reminded to do this - Joe) -- This message was sent by Atlassian JIRA (v6.2#6252)