Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

externa media source integration #51

Open
brescianicri opened this issue May 20, 2016 · 2 comments
Open

externa media source integration #51

brescianicri opened this issue May 20, 2016 · 2 comments

Comments

@brescianicri
Copy link

brescianicri commented May 20, 2016

I try to access to drop box media source but doesn't work. You ca write e documentation ?
This is my snippest:

[[!FileDownload?
&getDir=`tests/`
&mediaSourceId=`6`
&tplFile=`jsDownload`
&tplWrapper=`jsDownloadwp`
&dateFormat=`d-m-Y`
&sortBy=`date`
&sortOrder=`DESC`
]]

But i recive this error:
"Principal 3 does not have permission to load object of class modContext with primary key: mgr"
and i don't see anything.
In my opinion this parameter "getDir" doesn't need, because in my dropbox app i select the directory.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/34424165-externa-media-source-integration?utm_campaign=plugin&utm_content=tracker%2F1480317&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1480317&utm_medium=issues&utm_source=github).
@brescianicri
Copy link
Author

Maybe i found the problem:
in _fileInformation function this instruction:
$type = @filetype($fileRealPath); (row 1244)

doesn't work, and return false.
This do fail the order function and return nothig.

@brescianicri
Copy link
Author

I add at line 1117 this if:

/*check that there is the file type or else I put in file*/
                        if ($fileInfo['type'] === false) {
                            $fileInfo['type'] = 'file';
                        }

and work, a see you script don't take, the correct date of file and 0 with file size.
I use this puglin:
http://modx.com/extras/package/dropbox

for create the media source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant