This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am serargz on github. | |
* I am sergioag (https://keybase.io/sergioag) on keybase. | |
* I have a public key whose fingerprint is BEF4 90A3 CB1E BCD6 FA12 80B6 4C32 BA57 4160 E2DE | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function upload_media(imgURI) { | |
var options = new FileUploadOptions(); | |
options.fileKey="file"; | |
var time = new Date().getTime(); | |
var fileName = time+".jpg"; | |
options.fileName = fileName; | |
options.mimeType ="image/jpeg"; | |
options.chunkedMode = false; | |
var uri = encodeURI("http://<your bucket name>.s3.amazonaws.com/"); |