[TIMOB-3237] Android: File upload via POST does not work
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T02:01:15.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Sprint-2011-09 |
Components | Android |
Labels | android, defect, file, post, regression, reported-1.5, rplist, upload |
Reporter | Opie Cyrus |
Assignee | Opie Cyrus |
Created | 2011-04-15T03:40:07.000+0000 |
Updated | 2011-04-17T02:01:15.000+0000 |
Description
Attaching file to POST request does not result in the file being transmitted correctly.
Attachments
File | Date | Size |
---|---|---|
resources.zip | 2011-04-15T03:40:08.000+0000 | 909465 |
(from [e61312657476fd12e518bd1ede772a92bd7a4a65]) [#3237 state:fixed-in-qa] Fixed POST mechanism for sending files
changed mechanism for attaching files to POST messages to now check if file is proxy and grab base file object if so before attaching to message. Also renamed TiFile to TiFileProxy for clarity sake and to avoid confusion with io.TiFile
https://github.com/appcelerator/titanium_mobile/commit/e61312657476fd12e518bd1ede772a92bd7a4a65"> https://github.com/appcelerator/titanium_mobile/commit/e61312657476...
Please use the attached Resources directory to verify fix. Before testing, please change the line:
"client.send({media:myfile,username:'',password:'',message:'test'});"
in app.js to use your own username / password in place of the strings.
Once launched, just click the button and let it go. Once finished, you should see the test file uploaded to twitpic.
[INFO] Titanium SDK version: 1.7.0 (03/01/11 16:10 e613126) nexus s (2.3.2) Nexus 1 (2.2.2) sim.