![]() |
Codeigniter Dropbox Upload - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Codeigniter Dropbox Upload (/showthread.php?tid=64270) |
Codeigniter Dropbox Upload - vladakg - 02-02-2016 Hi, Isn't anybody helps me to upload file to dropbox with codeigniter? I did found this http://jimdoescode.blogspot.rs/2011/07/codeigniter-dropbox-api.html but didn't help me. Is not explained how to write view, call controller and upload image to dropbox. Any ideas? Thanks RE: Codeigniter Dropbox Upload - vladakg - 02-03-2016 Can anyone help me with this? I suppose I should call some function from library 'dropbox' but I don't know which, how, and what is my path.. RE: Codeigniter Dropbox Upload - vladakg - 02-03-2016 Just anyone can help me to call function in controller for upload and setup? RE: Codeigniter Dropbox Upload - Diederik - 02-03-2016 I'm not familiar with the Dropbox API so I can't directly help you, but I believe your answer (to your 'I should call some function from library 'dropbox' but I don't know which' question) should be in de Dropbox API documentations. The site you link to is over 5 year old, I don't think such an outdated site (CI2 is end of line, Sparks is dead, perhaps the Dropbox API has changed in the last 5 year) is a good starting point. Perhaps you should start with some recent plain PHP examples of the Dropbox API, get familiar with it and then ask the question how you can do that with Codeigniter. I think that way you will get more response. RE: Codeigniter Dropbox Upload - vladakg - 02-04-2016 When I ask in way you said I got answer to see link I wrote in my question ![]() RE: Codeigniter Dropbox Upload - vladakg - 02-04-2016 When I call function for file uploading in dropbox I getting error: Message: curl_setopt(): The usage of the @filename API for file uploading is deprecated. Please use the CURLFile class instead Part of code for curl from library is: PHP Code: private function _connect($url, $header, $request, $postdata = false, $destination = false) Any ideas? RE: Codeigniter Dropbox Upload - vladakg - 02-05-2016 I did figure out that is problem with cURL function cause isn't enable in PHP 5.5 and above. Instead of that I should use cURLFile function but I don't know how to manage that. Please help me! RE: Codeigniter Dropbox Upload - vladakg - 02-06-2016 Finally I figure out how to upload file into dropbox, but now I can't figure out how to manage to split this code to view and controller: PHP Code: <?php Can anybody show me how? |