Upload editing window does not close

Upload editing window does not close

jpavanjpavan Posts: 38Questions: 12Answers: 0

I installed the upload example and it works, but there are 2 problems:
1. when I upload a photo the editing window does not close
2. If I manually close the page, it does not allow editing until I refresh it

Example in http://jorgepavan.com.ar/datatables/ejup.html

Answers

  • allanallan Posts: 63,812Questions: 1Answers: 10,516 Site admin

    When I upload an image it is shown correctly. Then when I click "Update" a Javascript error is shown in the browser's console:

    ejup.html:62 Uncaught TypeError: Cannot read property 'web_path' of undefined

    I think (I'm not 100% certain) that the issue is that the server is only returning the file information for the file that was uploaded, rather than all of the files.

    Was this page created with Generator? If so, you could download the package again? I found an error in Generator's packaging last week that might cause this.

    Allan

  • jpavanjpavan Posts: 38Questions: 12Answers: 0

    Hi Allan, thanks for your answer.
    No, it was copied from your "File upload" example.
    How can I check where web_path is set?

    Regards,
    jorge.

  • allanallan Posts: 63,812Questions: 1Answers: 10,516 Site admin

    How can I check where web_path is set?

    It is set. What is odd is that only the file that was uploaded is returned.

    I just loaded the page to take another look but now get:

    move_uploaded_file(jorgepavan.com.ar/apl/public/img/fotos/37.png): failed to open stream: No such file or directory in C:\Program Files (x86)\Apache24\htdocs\DataTables\php\lib\Editor\Upload.php on line 462

    Allan

  • jpavanjpavan Posts: 38Questions: 12Answers: 0

    Ups, I did a test and forget to restore the situation. Now it works as before.

    Regards,
    jorge.

This discussion has been closed.