Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 679C110AB3 for ; Tue, 1 Sep 2015 00:05:47 +0000 (UTC) Received: (qmail 59729 invoked by uid 500); 1 Sep 2015 00:05:47 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 59711 invoked by uid 500); 1 Sep 2015 00:05:47 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 59677 invoked by uid 99); 1 Sep 2015 00:05:47 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Sep 2015 00:05:47 +0000 Date: Tue, 1 Sep 2015 00:05:47 +0000 (UTC) From: "Shazron Abdullah (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CB-7764) Cordova 3.4.1 + FileTransfer 0.4.0 on iOS 7.1.2 fails to upload large files (> 200MB) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-7764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shazron Abdullah updated CB-7764: --------------------------------- Assignee: (was: Shazron Abdullah) Environment: iOS Component/s: Plugin File Transfer > Cordova 3.4.1 + FileTransfer 0.4.0 on iOS 7.1.2 fails to upload large files (> 200MB) > ------------------------------------------------------------------------------------- > > Key: CB-7764 > URL: https://issues.apache.org/jira/browse/CB-7764 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin File Transfer > Environment: iOS > Reporter: Vladimir Mitrokhin > > Cordova 3.4.1 + FileTransfer 0.4.0 on iOS 7.1.2 > Upload file < 250 works, > 250 doesn't work. > Simple app built from the file transfer sample code. > https://github.com/Vladimir40491a/myrepository > Sample code (iOS Simulator test): > {code} > function testUpload() { > // Get file URL to video file. In this case I used a 520MB file > var imageURI = "file:///Users/shazron/Downloads/video.mp4"; > var options = new FileUploadOptions(); > options.fileKey = "file"; > options.fileName = imageURI; > options.mimeType= "video/mp4"; > options.chunkedMode = true; > > var ft = new FileTransfer(); > > ft.onprogress = function(progressEvent) { > var loaded = Number(((progressEvent.loaded / progressEvent.total) * 100).toFixed(1)); > console.log(loaded); > }; > > // upload to local server, use https://github.com/apache/cordova-labs/tree/cordova-filetransfer > ft.upload(imageURI, encodeURI("http://localhost:8000/upload"), successUploadFileToServ, failUploadFileToServ, options); > } > function successUploadFileToServ(r) { > console.log('Success FileTransfer method upload.'); > console.log(r); > > navigator.notification.alert('Video file has been successfully loaded', null, 'Upload file', null); > } > function failUploadFileToServ(error) { > console.log('Error FileTransfer method upload.'); > console.log(error); > > navigator.notification.alert('FileTransfer: Code = ' + error.code + '; Sourse = ' + error.sourse + '; Target = ' + error.target + '; http_status = ' + error.http_status, null, 'Error Upload file', null); > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org