I have given both cloudName as well as uploadPreset .but it showing both cloud name as well as uploadPreset but not uploading the file.when i am uploading picture
Asked
Active
Viewed 128 times
0
-
what you have tried, any code samples or any error? – Jagadeesh Govindaraj Jan 24 '17 at 10:57
-
ya i tried alot ... – Ravi Ranjan Jan 24 '17 at 11:16
-
uploader: CloudinaryUploader = new CloudinaryUploader( new CloudinaryOptions({ cloudName: 'pietechsolutions', uploadPreset: 't0iey0lk' }) ); constructor() { this.uploader.onAfterAddingFile = (item: any) => { item.url = this.uploader.options.url; console.log("url is" + item.url); return item; }; this.uploader.onSuccessItem = (item: any, response: string, status: number, headers: any): any => { return { item, response, status, headers }; }; } – Ravi Ranjan Jan 24 '17 at 11:20
-
i am sucessfully upload with sample image – Jagadeesh Govindaraj Jan 24 '17 at 11:22
-
https://ekito.github.io/ng2-cloudinary/demo/ here is the online link – Jagadeesh Govindaraj Jan 24 '17 at 11:22
-
try with your name and preset its working perfectly – Jagadeesh Govindaraj Jan 24 '17 at 11:23
-
https://api.cloudinary.com/v1_1/solutions/auto/upload this is the reponse i m getting on this.uploader.onAfterAddingFile this fuction – Ravi Ranjan Jan 24 '17 at 11:23
-
just download the plugin demo file run locally.and implement what you want the demo works perfectly.i think you missed something!!! – Jagadeesh Govindaraj Jan 24 '17 at 11:24
-
i have done with everything but not getting response on this.uploader.onSuccessItem – Ravi Ranjan Jan 24 '17 at 11:24
-
will you tell me how can i check cloudName and uploadPreset is working or not – Ravi Ranjan Jan 24 '17 at 11:25
-
which version you are using for ng2-cloudinary – Ravi Ranjan Jan 24 '17 at 11:26
-
i can upload image using your cloud name and preset – Jagadeesh Govindaraj Jan 24 '17 at 11:26
-
https://ekito.github.io/ng2-cloudinary/demo/ – Jagadeesh Govindaraj Jan 24 '17 at 11:27
-
goto this url scrool down and check your cloudname and preset are properly working or not – Jagadeesh Govindaraj Jan 24 '17 at 11:27
-
https://drive.google.com/file/d/0B733yfEiKOnUamVOYTRsdGZ1aDQ/view – Jagadeesh Govindaraj Jan 24 '17 at 11:29