the popup "insert an image" is still reopened after a click on "ok"
if the upload fails before the server code is executed, the box keeps reopening
wrong test
if the upload fails before the server code is executed, the box keeps reopening