Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3237] Android: File upload via POST does not work

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T02:01:15.000+0000
Affected Version/sn/a
Fix Version/sSprint-2011-09
ComponentsAndroid
Labelsandroid, defect, file, post, regression, reported-1.5, rplist, upload
ReporterOpie Cyrus
AssigneeOpie Cyrus
Created2011-04-15T03:40:07.000+0000
Updated2011-04-17T02:01:15.000+0000

Description

Attaching file to POST request does not result in the file being transmitted correctly.

Attachments

FileDateSize
resources.zip2011-04-15T03:40:08.000+0000909465

Comments

  1. Opie Cyrus 2011-04-15

    (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...

  2. Opie Cyrus 2011-04-15

    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.

  3. Thomas Huelbert 2011-04-15

    [INFO] Titanium SDK version: 1.7.0 (03/01/11 16:10 e613126) nexus s (2.3.2) Nexus 1 (2.2.2) sim.

JSON Source