Community Questions & Answers
Distribute app via Apple App Store, generates only ad Hoc
Hi, When distribute app via Apple App Store I only get a .ipa file, Xcode won't open and my app won't show up under archives. Why is that?
Detect file extension from openPhotoGallery ?
Hey, i am using the "openPhotoGallery" method to let the user choose a foto for a upload. My quetion is, how can i detect the file extension of this choosed file? I can check for an Foto-Type, but i can't see any way to differ between png and...
Titanium.Network.HTTPClient: mixed upload (file and xml)
Hi, I know:withxhr I can POST and GET datas. In my project I have to upload a file and in the same request a XML (Mulitipart). How can I realize this? Best regards Rainer
Image uploaded not viewable
Hi all, I have captured image and sent to the server using following; ~~~ var imageDir = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, 'images'); var fread = Ti.Filesystem.getFile(imageDir.resolve(), 'myFile001.jpeg'); } var...
How to migrate photo to ACS?
i need to upload a photo to ACS by using create photo service. all the photos hosted in server. i need to migrate to ACS. Im using ACS Javascript. please help me.
Facebook video uploads?
Has anyone had any luck performing a video upload to Facebook yet? I've been going round and around for hours now on this and just wondering if anyone has had any success at all? I keep getting a "Video file format is not supported" error.
Image upload directly from camera
Hey everyone, This is more of a solution than a question. I've just spent the morning trying to work out how to upload an image file. There are a few code examples on here but none of them seemed to work. I think the key is to specify the headers when...
Need Help Video Post at facebook
Hi friends, I need help(example of video post at facebook). I'm using httpclient but posting videos at "https://graph-video.facebook.com/me/videos". passing access token and file as blob. But some times it post to facebook and some time through...
Android - Error uploading picture to facebook
I'm having problem uploading a picture to facebook on android. I'm using titanium 3.0.0 and Sony Experia android version 4.0.3. It's working on iphone but I get an error "requires upload file" ~~~ shareBtn.addEventListener('click',function(e)...
Problem to upload photo in server
~~~ Titanium.Media.showCamera({ success : function(event) { var cropRect = event.cropRect; var image = event.media; var f = Titanium.Filesystem.getFile(Titanium.Filesystem.applicationDataDirectory, 'camera_photo1.png'); f.write(image);...
"ERROR getting 'android:icon' attribute: attribute is not a string value"
Just as the title says. Getting this error while uploading the .apk file to Google Play! I'm using the androidManifest file and i18-folder. Have my app appicon.png in resource->android->appicon.png in 96x96. Titanium 3.0
Photo doesn't upload on server
I have two methods that I have setup. **Method 1** : via curl_exec().. Everything else works except the photo is not uploading. I tried passing both absolute and relative path of the image so it looks something like --->...
How to Select and upload image by
Hi all. A question on Android enviroment. I want to choose and upload an image, selected from gallery, by an html "input type file form" in one webview. Below the simple html code index.html ~~~ <form...
ACS REST call - Invalid photo file attachment.
Hello, I'm trying to upload a photo to the ACS cloud. I'm using java code, jakarta HttpClient. Sign in is ok. At the end of the upload i've got this error : Upload failed, response={ "meta": { "status": "fail", ...
REST PUT to AWS S3 -- works on iOS, not Android
What works ---------- We have successfully come up with the code to upload a file using a RESTful PUT to Amazon's S3 simple storage service. We have shared all of our code and required libraries at the links at the bottom of this question. Hopefully...
Posting photo on my twitter account
How to post photo on my Twitter wall in titanium?? I cant see any API support directly from appcelerator to be able to do so..Kindly revert back with answers
Backgrounding a network call
What I'm attempting to achieve: I have an iPhone app, that uploads an document to S3. (Already implemented). If the user prefers to save a copy of the document on Dropbox, I'd like to do this in the background. Since the uploading of the document...
issue with images auto rotating
We are enabling users to take a pic and upload OR upload a pic from the stored images on their phone. The issue is if they take a pic or upload a pic that is, as an example a person standing (to the pic shows properly), but when the pic is uploaded into...
Upload photo from Android camera to PHP script
I've been doing a lot of Googling and forum searching to get a photo uploaded from a Titanium Android app. Here's the code I have at present, bound to a button click: ~~~ var button1 = Titanium.UI.createButton({ color:'#fff', title:'Capture', ...
Uploading file via HTTPClient?
I can't figure out how to accomplish this. I'm adding the file (Ti.Media.Blob) along with other plain text fields as parameters in a POST to my api. However, the POST is empty when my API receives it. Code...
upload images
Hello, is there a way to upload an image to an external server app?. This is an image taken with the camera following this code you can take a picture and save it, but I would like to send it to a server. Available in titanium a function to upload images...
Take A Picture, Preview and Upload
I am trying to create a form using the twitpix example. Where I take a photo from the camera and or the photo albumn. I then trying to assign it to the imageView as a preview, once the user fills 1 text field for the message, it sends to twitpix. It's...
Specify filename in multipart file upload
I need to upload a JPG image file to an existing service. The service requires an authentication string which is a hash that includes the file name. Therefore, the filename in the hash (determined BEFORE I make the request) must match the file name IN...
Uploading Multiple photos to server
Hi, I am trying to upload multiple photos which I have saved in an array to the ACS. I am able to successfully upload the 1 picture at a time. I am confused that how would I upload multiple photos with a for loop or whatever and when all pics are uploaded...
File Upload Progress Bar
I basically copied the Twitpic upload example and changed the endpoint to my own server, but the progress bar still won't display the progress or update. Any ideas?
Video Upload and Download Feature
I want to implement a video upload and download feature into my app. The uploaded videos are to be stored in a private server through WLAN. Could anyone explain the general picture of how this can be done, and suggest any server software that they found...
how to abort an upload
Hi, im uploading an image to a server. i have cancel button, when i click on it, i execute this : ~~~~~ backButton.addEventListener('click', function(e){ //cancel download if(clientUpload != null){ Ti.API.info('client not...
Video Upload, Download and View System for a Online Class
I am fairly new to programming. I wanted to create a system where the someone could upload videos to a private database and a select number of people could view the videos at their own leisure through the database. Could someone point me in the right...
FTP with Titanium
Hi All, It really is possible to develop a valid FTP Client with Titanium all my tests are failed Thank you very much in advance
timeout when upload photo
Hi, im uploading a photo. i have this error (timout) : http://db.tt/aiUOr1za but the photo is uploaded !! how is that possible ? so how can i check that the photo was uploaded even if i have errors... thanks
Problem with image upload and form submit
Hi, i'm tryng to submit a form with images, if the image (only one) is small (40 - 50 kb) it work but if the images are more bigger (400 - 500kb ) notting to do.. every time error ( server is correctly configured) progress bar never worked... this is my...
Upload Camera Photo to Server - PNG Filesize Increased by 70-80% on Server
Hiya I have the following app and code to take a photo taken on the iphone camera, and upload it onto a server using a PHP script. My problem is that the file that is being uploaded and placed on the server is increasing in filesize dramatically. For...
Android uploading a big Video (12 MByte) causes "Out of memory on a 107844520-byte allocation."
Hi, i have big problems with uploading a big video on Android. It works like a charm with small videos (around 2-5 MByte) but now I tried it with a video around 12.4 MBytes. And it always crashs with this errors: ~~~ W/dalvikvm-heap(27755):...
Distribute Problem(An error occurred uploading to the iTunes Store)
I am struggling about uploading apple app store. When i try to upload it says : "An error occurred uploading to the iTunes Store". I got hint from google it is about JAVA version problem so it says change Java version but in my...
Android HttpClient.abort() does not stop file upload
Hey guys, I'm having an issue with canceling http uploads from an android device. I have seen in other threads comments about the **abort()** method not working in Android, but with no replies or solutions. In my case, I have a simple program that...
issues uploading longe files with httpclient.
Hello everybody. Here I am again =).. Now i have a problem when i try to upload lages files to my server but it's so weird, cuz when i start to upload the file ( video, images or audio ), just it takes like 3 or 4 minutes and go to error handler and it...
Upload file to server using c# and asp. NET
Hi there, I'm trying to achieve that and i'm pretty new to asp coding. My code in titanium is: ~~~ f1 = Titanium.Filesystem.getFile(resDir+'images/config.png'); i1 = f1.read(); xhr =...
Google Docs upload help
Hello there, I'm creating a writing application and I want to give people the ability to upload to Google Docs. I found the corresponding API information here: [Google...
How i Can browse the file system on android ?
Hi guys , what's going on ? im newbie develping apps with titanium and im coding a fileupload app that it has to upload audio, video and images files and still im looking for to find something like a "Choose File dialog" in android os, So i've...
URL scheme not correct format
since a 1/3 year my 54House streaming radio app is available in the apple app store. Now I made some changes for iPads and can't upload an update because of a problem with the URL scheme. The URL scheme of my app is: com.FrankDase.54House If I...
Saving to phone then uploading to server on android
Hi All | have built a recorder the saves a file and then uploads it to my server the code is below ~~~ file = recording.stop(); var newFile...
upload file
Hi, I want to upload image : here is my code : ~~~~~~ exports.addMediaToAlbum = function(idAlbum, media, name, description, success, error){ var client = Ti.Network.createHTTPClient(); client.open('POST',...
Image upload but NOT base64, possible?
Hi, I need to upload an image using POST multipart form (xhr) but when I include the image file it is obviously base64 encoded blob. The server currently accepts html form uploads where one of the input types is a file but not base64 encoded. Thanks!
How to upload an image to server?
I need to upload an image to my server but I know how to do to the php part my titanium's code: ~~~ Titanium.Media.takeScreenshot(function(event) { // tira printscreen var fotoCarta = event.media; var currentTime = new Date(); var hours =...
Photos are not uploading to ACS
Hi Everyone I want to upload photos using ACS. I am developing my app on Android platform not titanium.My code giving no error but photos are not uploading here is my code. Please please help me. ~~~ package com.example.test; import java.io.File; import...
using facebook login credentials for a website and uploading
Hello, I'm new to appcelerator and is working on an RSS Feed with Photo and Video Uploading. I would like to ask how to link facebook log in credentials to a website (the website has facebook profile integration) and upload files on that website. Thanks...
Progress of Photo uploads in ACS
I currently use the ACS API's in my Android app. Now the [Photos API](http://cloud.appcelerator.com/docs/api/v1/photos/create) doesn't allow me to show the progress of photo uploads an also downloads. So is there any workaround for showing the progress?
XHR onsendstream Not Doing Anything on Android
I'm following the xhr_fileupload example from the KitchenSink [(see code here)](http://github.com/appcelerator/titanium_mobile/blob/master/demos/KitchenSink/Resources/examples/xhr_fileupload.js) and it seems that onsendstream doesn't fire at all on...
Uploading image Error
so I'm trying to print screen of iphone and then upload it to my server sending this to my php that will handle with this image.... but I'm getting an strange error: ~~~ IN ERROR Error Domain=ASIHTTPRequestErrorDomain Code=1 "A connection failure...
Problem uploading photos with ACS
When I try to upload photos with ACS It gives me some weird error: ~~~ {"success":false,"error":true,"code":401,"message":"You need to sign in or to sign up before continuing"} ~~~ It may look normal but...