php - NicEdit upload on your own server

429

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.

903

Answer

Solution:

Did you install the PHP APC library on your server? I think you need to generate this id.$id = $_POST['APC_UPLOAD_PROGRESS'];

603

Answer

Solution:

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.

People are also looking for solutions to the problem: php - PDF to JPG Imagic page selection

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.