Reputation: 157
i have problem with uploading on my own server with nicEdit wysiwyg editor.
When you clikc on upload image you will upload image on other site. Here: imgur dot com
This is it: http://nicedit.com/demos.php
I want to use them php script to upload image on my own server/domain. Can somebody tell me how to do it?
Here is the script: http://svn.nicedit.com//trunk/nicUpload/php/nicUpload.php
Still show message "Failed to upload image".
In console on firebug show this one:
<script>
try {
top.nicUploadButton.statusCb({"error":"Invalid Upload ID"});
} catch(e) { alert(e.message); }
</script>
POST is okay but i dont understand this. :(
Have anybody som good answer for me?
Thank you very buch. PS: sorry for my english. :)
Daniel.
Upvotes: 1
Views: 6038
Reputation: 3162
NicEditor uses imgur as the default image upload service. The source code follows the API format described here: http://api.imgur.com/resources_anon#upload
My suggestion would be to implement the API request and response defined there.
Upvotes: 0
Reputation: 1
Did you install the PHP APC library on your server? I think you need to generate this id.
$id = $_POST['APC_UPLOAD_PROGRESS'];
Upvotes: 0