Thanks for your quick reply, i fixed the problem. all folders have read and write right that was not causing the problem. You encrypt the url in the upload page. the url had too much characters (more than 300) and caused the error 400. My provider changed the setting max url length and now it works.