ANE-GoogleCloudStorageUpload is a native extension to upload data to binary file Google Cloud Storage with HTTP POST on iOS and Android. The extension provides the developer with simple methods to upload some file by type, such as image, videos or binary.

In order to upload a file, the developer must inform the path where the file is located in the local file system, the upload URL and some file specific parameters, such as the max length of a video. For every upload method, it’s possible to inform a callback that is invoked during the process, reporting important events such as errors or the upload progress.


public static function get isSupported() : Boolean;
public static function getInstance() : GoogleCloudStorageUpload;
public function uploadImageToServer( localURL:String, uploadURL:String, uploadParams:String, maxWidth:int, maxHeight:int, callback:Function ):void;
public function uploadVideoToServer( localURL:String, uploadURL:String, uploadParams:String, maxDuration:Number, callback:Function ):void;
public function uploadBinaryFileToServer( localURL:String, uploadURL:String, uploadParams:String, callback:Function ):void;
Air Native Extension, Android, iOS . URL.