grossopa / dropbox-as3 Goto Github PK
View Code? Open in Web Editor NEWAn ActionScript 3 Library
An ActionScript 3 Library
Hi, I'm developing an app using your dropbox API, and I have to upload various
files to the service.
How can I do it?
I was trying to use FileReferenceList and from this obtain one by one the
files. I thought I can do it using an assignment from the fileList to a
FileReference and then upload one file at time.
When I do it, I got a error and it say that a value is null. I thought I can
use the listener Complete for this fileReference created from the
FileReferenceList, but it doesn't happen, because the node data is empty
(file.data).
How could I upload more files?
Thanks and Greetings.
Original issue reported on code.google.com by [email protected]
on 10 Mar 2011 at 4:26
When i try using Dropbox Application Type: App folder, cant put file or folder,
give some errors:
Forbidden
Invalid Signature
..etc
dropBoxAccessType: kDBRootAppFolder
Library working now only with Full Dropbox Access?
Original issue reported on code.google.com by [email protected]
on 20 Mar 2013 at 5:41
When uploading a large file 10Mb, the following message is received after a bit:
[Event type="DropboxEvent_PutFileFault" bubbles=false cancelable=false
eventPhase=2]
This seems to indicate that the upload failed, but if you wait, the upload
actually finishes perfectly. The faultHandler should not be called unless
there is an actual failure.
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 15 Apr 2011 at 5:46
Hello,
This is more a question than an issue.
I'm just wondering if the new '/delta' call will be implemented in the AS3 API
? And if so, if you have an approximate release date ?
I'm about to start to devellop a new project using this API and I don't want to
create a synch method if the '/delta' is available soon.
Anyway, this is a good opportunity to thank you very much for this great API !
Original issue reported on code.google.com by [email protected]
on 5 Apr 2012 at 1:14
Hi,
just wondering if there are any plans to add the dropbox sync api
https://www.dropbox.com/developers/sync.
Would be quite a job i'd imagine!
Cheers,
Andy.
Original issue reported on code.google.com by [email protected]
on 15 Feb 2013 at 8:00
First, thank you for all the hard work in this library. It will save me a huge
amount of time. Now to the problem... I wanted to use the recommended (by
Dropbox) way of authenticating a user - with their email and password, but the
library gave me an error every time I tried to use token(). I downloaded the
source code, and modified token to work (code shown below). It seems that
token() is much simpler to call because it does not need to have the
"urlRequest.requestHeaders = [urlReqHeader];" created by Oauth - if that makes
any sense. *Please* fix this issue, so I can use this wonderful library. Thank
you!!!
With the change to token() below... when running the app, the Account Info
button works fine, however when I go to Upload File I get the error {"error":
"The input field 'Upload' was not expected."}. Trouble is the only reference
to Upload I can find is in the MultipartURLLoader.as that I also downloaded the
source code for to compile. Maybe I am using a newer version of this file than
you are using. Here is my token() code:
import flash.net.URLVariables;
...
public function token(oauth_consumer_key:String, email:String, password:String):URLLoader
{
var url:String = config.tokenUrl;
var params:URLVariables = new URLVariables();
params.status_in_response = "true";
params.oauth_consumer_key = oauth_consumer_key;
params.email = email;
params.password = password;
var urlRequest:URLRequest = new URLRequest();
urlRequest.method = URLRequestMethod.POST;
urlRequest.url = url;
urlRequest.data = params;
var urlLoader:DropboxURLLoader = new DropboxURLLoader();
urlLoader.dataFormat = URLLoaderDataFormat.TEXT;
urlLoader.eventResultType = DropboxEvent.TOKEN_RESULT;
urlLoader.eventFaultType = DropboxEvent.TOKEN_FAULT;
urlLoader.resultType = ACCESS_TOKEN;
urlLoader.addEventListener(Event.COMPLETE, tokenCompleteHandler);
urlLoader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
urlLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
urlLoader.load(urlRequest);
return urlLoader;
}
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
r19
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 15 Apr 2011 at 4:22
What steps will reproduce the problem?
1. Usage of the code from a previous post regarding flash pro
(http://code.google.com/p/dropbox-as3/issues/detail?id=9&can=1).
2. Please find attached my slightly modified version.
What is the expected output? What do you see instead?
Request token not behaving "Error opening URL
'https://api.dropbox.com/1/oauth/request_token'"
What version of the product are you using? On what operating system?
flash pro 5.5
Windows 7
Please provide any additional information below.
Hi, I think what you've made is excellent. Afraid I'm having some trouble
getting it to work in Flash Pro. I took the dropboxTest.as from a previous
posting (see html above), made very few modifications (removing all reference
to 'onstage' stuff) and provided a key and a secret.
I am sure I'm doing something silly. Perhaps it is the way I provide the key
and secret via config.setConsumer("key","secret"). Would much appreciate your
help :) Thanks, Andy.
Original issue reported on code.google.com by [email protected]
on 9 Feb 2012 at 12:24
Attachments:
What steps will reproduce the problem?
1. Take example from http://code.google.com/p/dropbox-as3/wiki/EXAMPLES
2. The constructor of DropboxConfig Class takes arguments.
3. This is not in the example.
Could you please update the examples code with real working code?
Thanks!
Sidney
Original issue reported on code.google.com by sidney.dekoning
on 19 Apr 2011 at 1:59
I cant find any tutorial or docs
I want the user to be able to log in to my air app
and then be able to play music or view images from the shared folder.
Is this API only for streaming from online or is there a way to access the path
to the duplicated folder on the desktop?
How does it deal with shared folders?
thanks
Original issue reported on code.google.com by [email protected]
on 5 Jul 2013 at 11:06
Please let me know what am I doing wrong here...
What steps will reproduce the problem?
doing this:
dropboxConfig = new DropboxConfig( 'xxx', 'yyy' );
dropboxClient = new DropboxClient( dropboxConfig );
dropboxClient.addEventListener( "DropboxEvent_RequestTokenResult",
onRequestTokenResult );
dropboxClient.addEventListener( "DropboxEvent_RequestTokenFault",
onRequestTokenFault );
dropboxClient.requestToken();
What is the expected output? What do you see instead?
The request fails with this message:
{"error": "OAuthError in API v1+. Request mis-signed: Invalid or missing
signature"}
What version of the product are you using? On what operating system?
dropbox-r38.swc
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 29 Nov 2012 at 2:25
If you're not familiar with swc libraries, it's a little tricky to build them,
unless you know what you're doing. It would be handy if you included them in
the wiki or in a source checkout or something. For the record, this is how I
did it on a Mac with the command line tools:
svn co http://dropbox-as3.googlecode.com/svn/trunk/ dropbox-as3
cd dropbox-as3
compc -compiler.source-path=./HsDropbox/src -library-path+=./HsDropbox/libs
-output dropbox-as3.swc
Original issue reported on code.google.com by [email protected]
on 20 Jan 2011 at 4:42
What steps will reproduce the problem?
1. Execute uploadFile() function
2. Return faultHandler function
3.
What is the expected output? What do you see instead?
- Message resultObject --> {"error": "Invalid signature. Expected signature
base string:
POST&https%3A%2F%2Fapi-content.dropbox.com%2F1%2Ffiles%2Fdropbox%2Febook_files%2
F&file%3Dmockups_uLib%25281%2529.pdf%26oauth_consumer_key%3D(myconsumerkey)%26oa
uth_nonce%3D2AB21F1D-C6A8-5FD4-90B5-661A8127A592%26oauth_signature_method%3DHMAC
-SHA1%26oauth_timestamp%3D1328857907%26oauth_token%3Detqlrmdaxnl3b54"}
What version of the product are you using? On what operating system?
dropbox r-30.swc - Flex 4.6 under windows 7
Please provide any additional information below.
-How do you fix this error? thanks .
Original issue reported on code.google.com by [email protected]
on 10 Feb 2012 at 7:20
Apologies in advance for what most likely will be a stupid question.
I thought I remembered from a year ago that when you get metadata for a folder,
you get file info from it and all subfolders (recursive).
Perhaps I wrongly remembered as the only way I've found for me to get all the
files in a directory and subdirectories is to run
dropAPI.metadata(folder, 1000, "", true) and if a folder is detected, run
another dropAPI.metadata but for the subfolder, and so on (the data contained
in the folder is not reported).
My Q is, is there a simpler way of doing this?
Thanks,
Andy.
Original issue reported on code.google.com by [email protected]
on 19 Feb 2013 at 5:47
Hi,
I think there is a problem with the following line in the files_put function -
var url:String = this.buildFullURL(config.contentServer,
OAuthHelper.encodeURL('/files_put/' + root + '/' + ((filePath == null ||
filePath == "") ? "" : filePath + '/') + fileName), "https");
If you call this function with an empty path it gives an error e.g.
Error #2032: Stream Error. URL:
https://api-content.dropbox.com/1/files_put/dropbox//RMD_5709.jpg
Note the // before the file name.
Even though you have a check for null or empty string in the function I think
it needs some extra brackets -
var url:String = this.buildFullURL(config.contentServer,
OAuthHelper.encodeURL('/files_put/' + root + '/' + ((filePath == null ||
filePath == "") ? "" : (filePath + '/')) + fileName), "https");
Cheers,
Rob.
Original issue reported on code.google.com by [email protected]
on 16 Jan 2013 at 2:19
Hi! Isee that the library doesn't have any update since May, it is possible to
get source code to make some improvements? I'm very interested in this project,
if you want I could help you.
Original issue reported on code.google.com by [email protected]
on 22 Dec 2010 at 8:38
Small files seem to be downloaded fine. I am not sure exactly where is starts
breaking, but if I download a file of about 1.5 Mb it gives me the following
message on download...
[Event type="DropboxEvent_GetFileFault" bubbles=false cancelable=false
eventPhase=2] {"error": "Invalid signature. Expected signature base string:
GET&http%3A%2F%2Fapi-content.dropbox.com%2F0%2Ffiles%2Fdropbox%2F13028887084441%
2Fcopied_MV%2520letterhead%2520BW%2520CS3Ver2.eps&oauth_consumer_key%3D3tbsfspb3
cs1t73%26oauth_nonce%3D6F3CAAF0-5C15-B315-B89A-5A39024E91BD%26oauth_signature_me
thod%3DHMAC-SHA1%26oauth_timestamp%3D1302888776%26oauth_token%3D9gyd29dgx3f3lnq"
}
Note: I have modified the source code slightly to show me the response from
Dropbox.com as part of the faulthandler in HsDropboxAPIAppAs.as as follows:
private function faultHandler(evt:Event):void
{
var obj:Object = evt;
Alert.show(evt.toString() + " " + obj.resultObject);
}
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 15 Apr 2011 at 5:40
Hi grossopa,
First of all, thanks for the library! It has made working with Dropbox for me
quick and easy!
I have a glitch to report:
When uploading a file to a folder with space(s) in its name, if the folder is
more than one level deeper than the root, a new folder is created instead with
"%20" in the name instead of the space(s).
Example:
Uploading file.txt to "/Shared/Folder with spaces" ends up in
"/Shared/Folder%20with20%spaces". This however won't happen if we upload to
"Folder with spaces" which lives directly in the root of the Dropbox account.
The reason is simple and easy to fix:
In DropboxClient.as, in the function putFile() the filePath string gets escaped
twice (if it has more than one subfolder in it):
var url:String = encodeURI(this.buildFullURL(config.contentServer, '/files/' +
root + '/' + buildFilePath(filePath)));
buildFilePath() replaces the spaces in filePath with %20 and then encodeURI()
tries to do it once again and we end up with %2520 instead of each space.
Not calling buildfilePath() fixes the problem when uploading:
var url:String = encodeURI(this.buildFullURL(config.contentServer, '/files/' +
root + '/' + filePath));
The way buildFilePath() works is potentially a problem too, for cases when
escaping is necessary, as it doesn't do escaping, unless we have a path
containing at least two levels:
private static function buildFilePath(filePath:String):String
{
if (filePath.indexOf('/') < 0) {
return filePath;
}
...
}
I've fixed my read-only check in and it does the job for me. I hope you could
check a fix in the repository.
Let me know if you need any more information.
Thanks a lot!
Original issue reported on code.google.com by Radoslava.Leseva
on 4 Feb 2012 at 11:55
What steps will reproduce the problem?
1. Try uploading a file...
What is the expected output? What do you see instead?
File uploading to DB
Invalid signature. Expected signature base string:
POST&https%3A%2F%2Fapi-content.dropbox.com%2F1%2Ffiles%2Fdropbox%2F1325795992524
1&file%3Dtest.txt%26oauth_consumer_key%3Dmfhk4xlkpqyfvem%26oauth_nonce%3D9B158A6
7-03CD-51A7-8218-AF99BC0D9653%26oauth_signature_method%3DHMAC-SHA1%26oauth_times
tamp%3D1325796015%26oauth_token%3D3p0wvtgab7zfiqx"}
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 5 Jan 2012 at 8:39
Hi there,
afraid I am getting this error message when trying to get a file:
{"error": "Invalid signature. Expected signature base string:
GET&https%3A%2F%2Fapi-content.dropbox.com%2F1%2Ffiles%2Fdropbox%2Fflower.jpg&oau
th_consumer_key%3D1r9mdwov0wpwmow%26oauth_nonce%3D49663FB8-D1D3-C622-05F9-5BA561
D30928%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1341567361%26oau
th_token%3D6s1qxs98bdct2pc"}
AccountInfo, MetaData, CreateFolder functions all work really well though :)
Would appreciate your help, thanks,
Andy.
Original issue reported on code.google.com by [email protected]
on 6 Jul 2012 at 9:54
Hi there,
to give the dropbox-as3 api a try, I registered a testApp to get a consumer key
and secret.
My appCompleteHandler function looks like this:
public function appCompleteHandler():void
{
var config:DropboxConfig = new DropboxConfig('abc123', 'def456');
config.setConsumer('abc123', 'def456');
//config.setRequestToken();
//config.setAccessToken();
dropAPI = new DropboxClient(config);
}
I passed the consumer key and secret twice, because the DropboxConfig() needs
at least 2 arguments, not sure with that.
The Example compiles correctly. When I hit the RequestToken button, the
application fails at getRequestToken() -> dropAPI.requestToken();
What's wrong?
I'm on Mac, AIR 2.6
Thanks!
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 30 Mar 2011 at 12:14
What steps will reproduce the problem?
Try running the demo included, with a newly obtained API key.
What is the expected output? What do you see instead?
It should work. But it doesn't because the Dropbox library uses the v0 API
apparently. My API key is rejected: "You're using an older version of the
Dropbox API with a new API key. Please use the latest version."
What version of the product are you using? On what operating system?
dropbox-r24.swc, currently on Windows and Mac.
Please provide any additional information below.
-
Original issue reported on code.google.com by [email protected]
on 22 Nov 2011 at 7:10
https://www.dropbox.com/developers/core/docs#metadata
URL Structure
https://api.dropbox.com/1/metadata/auto/<path>
- current :
var urlRequest:URLRequest = buildURLRequest(config.server, '/metadata/' + root
+ buildURLFilePath(path), params);
- fix :
var urlRequest:URLRequest = buildURLRequest(config.server, '/metadata/auto/' +
root + buildURLFilePath(path), params);
Original issue reported on code.google.com by [email protected]
on 1 Feb 2015 at 3:13
I am using your example-code and managed to make requestToken-calls,
eMailLogin-calls and accessToken-calls successfully, but I am confused when to
use RequestToken-call, eMailLogin-call and accessToken-call in general. I did
not manage to make a GetAccountInfo-call ("accountInfo()") at all.
Please correct me if I am wrong:
1) The RequestToken-call should be only called once in the whole live time of a
client. It returns a URL to allow the client to access a users drop-box-data.
Once this permission is granted it should not be called (unless the user erases
the permission).
1.1) Is there a way to check if the user has given the permission allready?
2) What are differences between eMailLogin-call ("emailLogin()") and
accessToken-call ("getAccessToken()")?
Even if the user has revoked authorization I get a successfull response via
eMailLogin-call, but not via accessToken-call.
2.1) What do I have to do with the key/secret I get in return from these two
calls (and which are displayed in the "accTokenKeyLabel" and
"accTokenSecretLabel" in your example-code). Does your AS3-API store them for
me and they are only displayed as a visiual feedback for the devveloper in your
example?
If you could explain these issues in more detail, it would be AWESOME! :)
Thank you very much in advance!!!
Original issue reported on code.google.com by [email protected]
on 3 Aug 2011 at 7:56
Any way to get the progress of Getfile? I'd like to add a progress bar when
downloading a file through Dropbox in my app, since the files used can be large
and I can't figure out how.
Original issue reported on code.google.com by [email protected]
on 15 Jun 2013 at 2:22
Hi, just a heads up that the filePath given to you by dropbox via metadata
contains a leading / which kills the below function.
cheers,
Andy.
public function getFile(filePath:String, rev:String = "",
root:String=DropboxConfig.DROPBOX):URLLoader
{
var params:Object = null;
if (rev != "" && rev != null) {
params = {
rev : rev
}
}
var urlRequest:URLRequest = buildURLRequest(
config.contentServer, "/files/" + root + '/' + filePath, params);
return this.load(urlRequest, DropboxEvent.GET_FILE_RESULT,
DropboxEvent.GET_FILE_FAULT, "", URLLoaderDataFormat.BINARY);
}
Original issue reported on code.google.com by [email protected]
on 20 Feb 2013 at 1:09
Can you provide an example for Flash Professional CS5? I have attempted to make
it work, but I keep getting:
[Event type="DropboxEvent_RequestTokenFault" bubbles=false cancelable=false
eventPhase=2]
Original issue reported on code.google.com by [email protected]
on 27 Feb 2011 at 10:55
Hello this seems to be a great start of Accessing Dropbox through AIR. But I'm
a little confused by this step:
config.setConsumer('WHAT DO I PUT IN HERE?? Users EMAIL?', 'WHAT DO I PUT IN
HERE? USERS PASSWORD?');
config.setRequestToken('IS THIS THE APP TOKEN?', 'IS THIS THE APP KEY?');
config.setAccessToken('input user's access token key here', 'input user's
access token secret here');
Would there be any way of getting you to do a more detailed tutorial? :)
Original issue reported on code.google.com by [email protected]
on 2 Oct 2010 at 12:33
Does the api provide a method, where in If I have a user open and enter his/her
username and password to access his dropbox account.
the Dropbox api has something like:
https://api.dropbox.com/<version>/token to give me back the consumers/secret
key pair
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 10 Feb 2011 at 1:33
The dropbox api metadata call (https://www.dropbox.com/developers/docs#files),
gives path information for each file, but dropbox-as3 doesn't support this.
This is a pretty easy fix. In fact, I've included a patch to do this.
https://gist.github.com/787397
If there's anything you're unsure about anything in the patch, I'm open to
suggestions.
Original issue reported on code.google.com by [email protected]
on 20 Jan 2011 at 4:38
How to detect when the user has authorized ?
I do not know when or where I have to run the function "getAccessToken()" .
I am using the version r30.swc under windows operating system .
Flex 4.6 ;
thank's !
Original issue reported on code.google.com by [email protected]
on 18 Jan 2012 at 3:25
1. I registered a test app to get my own key and secret
2. I replaced key and secret in the code: my config.setConsumer(my key, my
secret)
3. what do I have to fill in at setRequestToken() and setAccessToken??
Is this all I have to do to connect to dropbox? So now I must be able to upload
files without extra prompts?
Original issue reported on code.google.com by [email protected]
on 4 Aug 2010 at 8:37
What steps will reproduce the problem?
1. Use the latest r30 swc
2. request token
3. type in email & password, click the "Email/Password" button in the sample
app.
What is the expected output? What do you see instead?
Action token should be returned. Instead, Alerts shows that
"OAuthError in API v1+. Request mis-signed: Invalid signature."
What version of the product are you using? On what operating system?
Using Flex 4.6 with dropbox-as3 r30
Please provide any additional information below.
The library works brilliantly just a few days ago but now when i use again,
zero modification to the file, and it no longer works.
Original issue reported on code.google.com by [email protected]
on 28 Jan 2012 at 3:41
Hi,
I found two issues in the decode function of the delta call.
First the "_has_more" getter/setter is not correctly set if the delta call
returns has_more as true.
You set the setter like this :
this.has_more = result['has_more'] == "true";
But it should be :
this.has_more = result['has_more'] == true;
JSON decodes the string "true" as a boolean, not a string.
Same thing applies for :
this.reset = result['reset'] == true;
The second issue is that if you have a deleted entry, this entry won't have a
file object so you can't decode it.
So this is what I did :
var e:Array = result['entries'], n:int = e.length, i:int = 0, f:DropboxFile;
for(i;i<n;i++){
f = new DropboxFile();
//CHECK IF NULL, IF NULL : IT MEANS FILE IS DELETED
if(e[i][1] != null)
{
f.decode( e[i][1] );
entries.push( f );
}
else
{
f.path = e[i][0];
f.isDeleted = true;
entries.push(f);
}
}
I take the opportunity to thank you again for this great work, it saved me many
hours of development.
Rodolphe
Original issue reported on code.google.com by [email protected]
on 11 Feb 2013 at 3:09
What steps will reproduce the problem?
1. Edit the example code from EXAMPLES.wiki.
2. requestToken() works successfully.
3. authorizationUrl() allowed.
4. accessToken() works successfully.
5. accountInfo() works just fine.
6. nothing else works(fileCreateFolder, fileDelete, fileMove, etc)
What is the expected output? What do you see instead?
fileCreateFolder or other function throws the error FAULT:[Event
type="DropboxEvent_FileCreateFolderFault" bubbles=false cancelable=false
eventPhase=2]
What version of the product are you using? On what operating system?
Flash Pro 12.0 (CS6)
Windows 7
Please provide any additional information below.
Hi, I used dropbox-r51 and the example to access my dropbox account in my
desktop app, and the Authorization API Implementation steps works just fine.
But when i tryed to use the functions fileCopy, fileCreateFolder, fileDelete,
fileMove they throw an error.
I would very much appreciate your help.
Thanks in advance.
Original issue reported on code.google.com by [email protected]
on 17 Apr 2013 at 4:09
Hi there,
could you advise how I can specify the type of access to DropBox through your
awesome project.
The dropBox API reference specifies the below (I need to specify 'app_folder' :
it did not feel right in creating a dropbox App for my software that had access
to a person's entire dropbox folder :)
(https://www.dropbox.com/developers/start/authentication#python)
# ACCESS_TYPE should be 'dropbox' or 'app_folder' as configured for your app
ACCESS_TYPE = 'INSERT_ACCESS_TYPE_HERE'
sess = session.DropboxSession(APP_KEY, APP_SECRET, ACCESS_TYPE)
Thanks!
Andy.
PS No doubt I'll figure this out within a short few minutes after clicking
Submit. Will report back if so!
Original issue reported on code.google.com by [email protected]
on 6 Jul 2012 at 8:00
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
I can authenticate against the API and make a successful call on AccountInfo,
but when I call metadata() it fails but the error returned is not informative?
Is it possible to retrieve the HTTP error code?
What version of the product are you using? On what operating system?
Adobe Flash Builder "Burrito", Windows Vista, HTC Android
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 11 Jan 2011 at 4:38
What steps will reproduce the problem?
1. try to upload (putFile()) a file with filename containing special chars like
àùìèé;
2. copy a file with the same chars in your Dropbox folder, then try to
getFile() on the file;
3. both methods return an Invalid Signature error.
What is the expected output? What do you see instead?
No error. It returns "Invalid signature error"
What version of the product are you using? On what operating system?
r34
I solved, replacing in OAuthHelper->buildURLRequestHeader
signMethod:String = "HMAC-SHA1"):URLRequestHeader
with
signMethod:String = "PLAINTEXT"):URLRequestHeader
But I have no idea if it could be correct in terms of security or what else.
Thanks
Andrea
Original issue reported on code.google.com by [email protected]
on 6 Feb 2013 at 11:14
Note: this could potentially be duplicate of issue 25.
What steps will reproduce the problem?
1. On your Dropbox account create a folder with an apostrophe in the name (for
example "Clare's plant")
2. Try and upload a file to that folder, using HsDropbox.
What is the expected output? What do you see instead?
Instead of having the file appear in the folder, it refuses to upload and an
"Invalid signature" error is thrown.
What version of the product are you using? On what operating system?
v32
Mac OS X, Snow Leopard, also iOS 5
Please provide any additional information below.
I tried a workaround, which fixes the problem for apostrophes for me, but a
proper fix will be needed, which deals with characters, such as %, etc. in the
folder names.
The workaround:
I tried encoding the ' in the url, passed to DropboxClient.putFile(), but saw
that in the "Invalid signature" error message the "expected signature base"
string had the ' encoded twice - i.e. instead of %27, it contained %2527 where
the ' should be.
To make these match I had to do the following:
1. In DropboxClient.putFile() encode the ' in url once, just before the
following line:
m.load(url);
2. In OAuthHelper.getSignableString() encode the ' in the url twice, just
before returning the result (ret).
This is just a workaround, which fixes an immediate problem I have, but isn't a
proper fix and won't help with folders, which contain % in their name.
Original issue reported on code.google.com by Radoslava.Leseva
on 20 Mar 2012 at 2:25
What steps will reproduce the problem?
1. This can be reproduced even using the example code provided here.
2. It may be necessary to use a newly created "app key" and "app secret" to
observe this failure message.
What is the expected output? What do you see instead?
The failure notice, delivered by an alert window, can be seen by 'clicking' the
demo apps "Create" button. Please note that within the demo code's
'appCompleteHandler()' function I am executing the...
config.setConsumer("<appKeyFromDropboxGoesHere>" , "<appSecretfromDropboxGoesHere>");
...instruction. I am new to "dropbox-as3" (thanks so much for coding it, by the
way :) ) so please forgive me if I am misunderstanding something critical.
What version of the product are you using? On what operating system?
Mac OS 10.7.2 / Flash Builder 4.5 & the 4.5.1 SDK
Please provide any additional information below.
In the Dropbox developer area I've read reports of others experiencing this
same "You're using an older version of the Dropbox API with a new API key.
Please use the latest version." message (though these others are NOT using
AS3). The replies to these issues invariably tell the reporter that their
interface to Dropbox must be updated. This is what makes me suspect this same
problem may be affecting "dropbox-as3".
Thanks!
Original issue reported on code.google.com by [email protected]
on 6 Nov 2011 at 3:21
What steps will reproduce the problem?
1. Register for new app for dropbox API
2. Use standard dropbox-as3 API calls after requesting and authorizing tokens
3. Any folder functions will fail
It appears that the default functionality for dropbox-as3 is to use "sandbox".
Sandbox seems to be disabled for any new applications.
So the example below will fail by default
dropAPI.fileCreateFolder(testFolder);
Where as this will succeeed.
dropAPI.fileCreateFolder(testFolder, 'dropbox');
This isn't made clear in the example so perhaps it should be updated or
"sandbox" should no longer be default?
Original issue reported on code.google.com by oliverng
on 19 Jan 2011 at 6:26
I'm making a desktop application with Flex, and I need to get some pictures
links hosted on Dropbox. But I need to permanently dispose of those links.
I need the time to expiration on the bonds is greater.
I can only use the function media(), because the links do not pass through the
dropbox server...
What version of the product are you using? On what operating system?
dropbox r-33.swc - Flex 4.6 under windows 7
Please provide any additional information below.
Is there any way to fix this?
thank's!
Original issue reported on code.google.com by [email protected]
on 24 May 2012 at 9:06
Seems to have something to do with the file name. If it has any special
characters in the file name, it returns this type of error:
[Event type="DropboxEvent_MetadataFault" bubbles=false cancelable=false
eventPhase=2] {"error": "Invalid signature. Expected signature base string:
GET&http%3A%2F%2Fapi.dropbox.com%2F0%2Fmetadata%2Fdropbox%2F13033397032751%2FTes
t%2520Copy.txt&file_limit%3D1%26hash%3D%26list%3Dfalse%26oauth_consumer_key%3D3t
bsfspb3cs1t73%26oauth_nonce%3DDC39FFFC-96A9-7148-6ACF-752B17217E84%26oauth_signa
ture_method%3DHMAC-SHA1%26oauth_timestamp%3D1303340848%26oauth_token%3Dxs7kah50s
leorlm"}
For example, uploading "Test.txt" works fine,
uploading "Test Copy.txt" fails with Invalid Signature,
uploading "Test - dash in file name.txt" fails with Invalid Signature
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 20 Apr 2011 at 11:11
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.