Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-19784

Android: Cloud Files Create Error "Invalid Name"

    Details

    • Story Points:
      5
    • Sprint:
      2015 Sprint 22 SDK

      Description

      This is working correctly in SDK 4.1.0.GA.

      Using 5.0.2.GA and the code below:

      Cloud.Files.create({
        name: 'my_file_1234567',
        file: theFile
      }, function (e) { 
        if (e.success) {
          // do stuff here
        } else {
          Ti.API.info(JSON.stringify(e));
        }
      });
      

      Produces error:-

      10-25 23:47:33.283 29748 29833 E TiHTTPClient: (TiHttpClient-3) [85523,88494] HTTP Error (java.io.IOException): 400 : Bad Request
      10-25 23:47:33.283 29748 29833 E TiHTTPClient: java.io.IOException: 400 : Bad Request
      10-25 23:47:33.283 29748 29833 E TiHTTPClient: 	at ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run(TiHTTPClient.java:1213)
      10-25 23:47:33.283 29748 29833 E TiHTTPClient: 	at java.lang.Thread.run(Thread.java:818)
      10-25 23:47:33.285 29748 29761 I TiAPI   :  {"success":false,"error":true,"code":400,"message":"Invalid name"}
      10-25 23:47:33.285 29748 29761 I ALERT   : (KrollRuntimeThread) [3,88497] {"success":false,"error":true,"code":400,"message":"Invalid name"}
      

      Ticket created based on information from: https://community.appcelerator.com/topic/3825/cloud-files-create-error-invalid-name/

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                msamah Ashraf Abu (Inactive)
                Reporter:
                msamah Ashraf Abu (Inactive)
                Reviewer:
                Hieu Pham
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-20541
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code