{"action":"created","issue":{"url":"https://api.github.com/repos/einpraegsam/powermail/issues/272","repository_url":"https://api.github.com/repos/einpraegsam/powermail","labels_url":"https://api.github.com/repos/einpraegsam/powermail/issues/272/labels{/name}","comments_url":"https://api.github.com/repos/einpraegsam/powermail/issues/272/comments","events_url":"https://api.github.com/repos/einpraegsam/powermail/issues/272/events","html_url":"https://github.com/einpraegsam/powermail/issues/272","id":322801801,"number":272,"title":"Safari: AJAX Submit with empty file upload field are not working","user":{"login":"dkoether","id":7765498,"avatar_url":"https://avatars1.githubusercontent.com/u/7765498?v=4","gravatar_id":"","url":"https://api.github.com/users/dkoether","html_url":"https://github.com/dkoether","followers_url":"https://api.github.com/users/dkoether/followers","following_url":"https://api.github.com/users/dkoether/following{/other_user}","gists_url":"https://api.github.com/users/dkoether/gists{/gist_id}","starred_url":"https://api.github.com/users/dkoether/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkoether/subscriptions","organizations_url":"https://api.github.com/users/dkoether/orgs","repos_url":"https://api.github.com/users/dkoether/repos","events_url":"https://api.github.com/users/dkoether/events{/privacy}","received_events_url":"https://api.github.com/users/dkoether/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-14T12:48:03Z","updated_at":"2018-05-14T12:52:50Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nit looks like Powermail / Parsley has a problem in Safari when submitting the form with AJAX is activated in TypoScript and the form contains an optional empty file upload field. In Chrome, Firefox & IE it works fine.\r\n\r\n`plugin.tx_powermail.settings.setup.misc.ajaxSubmit = 1`\r\n\r\nAll necessary files are included:\r\n- jQuery\r\n- parsley.js\r\n- Form.js\r\n\r\nIn Safari's Network Analyzer it looks like it is not receiving the answer (neverending cicle) and the request is missing informations:\r\n\r\nBuilded Request (not working / with file upload field):\r\n```\r\nContent-Type: multipart/form-data; boundary=----WebKitFormBoundaryB6h5wAr6n46CaHwe\r\nOrigin: https://www.domain.de.local\r\nAccept: */*\r\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1 Safari/605.1.15\r\nReferer: https://www.domain.de.local/test/\r\nX-Requested-With: XMLHttpRequest\r\n```\r\n\r\nBuilded Request (working / without file upload field):\r\n```\r\nPOST /test/ HTTP/1.1\r\nContent-Type: multipart/form-data; boundary=----WebKitFormBoundary1rFqMJTlf9HigVrS\r\nOrigin: https://www.domain.de.local\r\nHost: www.domain.de.local\r\nAccept: */*\r\nConnection: keep-alive\r\nAccept-Language: de-de\r\nAccept-Encoding: br, gzip, deflate\r\nCookie: _pk_id.13.612c=f5d64fe6a...6147.; _pk_ses.13.612c=*; fe_typo_user=44b5...9d6f;\r\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1 Safari/605.1.15\r\nReferer: https://www.domain.de.local/test/\r\nContent-Length: 2032\r\nX-Requested-With: XMLHttpRequest\r\n```\r\n\r\nI've tested this behaviour on multiple systems with the following versions and none of them are working:\r\n\r\nSystem 1:\r\nTYPO3 7.6\r\nPowermail Version: 2.25.1\r\n\r\nSystem 2:\r\nTYPO3 7.6\r\nPowermail Version 3.22.1\r\n\r\nSystem 3:\r\nTYPO3 8.7\r\nPowermail Version: 5.6.0\r\n\r\nWhen I remove the file upload field from form the AJAX submit works as wanted.\r\n\r\nDid you notice this behaviour in the past or do you have any idea?\r\n\r\nThank you in advance,\r\nDaniel"},"comment":{"url":"https://api.github.com/repos/einpraegsam/powermail/issues/comments/388805713","html_url":"https://github.com/einpraegsam/powermail/issues/272#issuecomment-388805713","issue_url":"https://api.github.com/repos/einpraegsam/powermail/issues/272","id":388805713,"user":{"login":"einpraegsam","id":89055,"avatar_url":"https://avatars2.githubusercontent.com/u/89055?v=4","gravatar_id":"","url":"https://api.github.com/users/einpraegsam","html_url":"https://github.com/einpraegsam","followers_url":"https://api.github.com/users/einpraegsam/followers","following_url":"https://api.github.com/users/einpraegsam/following{/other_user}","gists_url":"https://api.github.com/users/einpraegsam/gists{/gist_id}","starred_url":"https://api.github.com/users/einpraegsam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/einpraegsam/subscriptions","organizations_url":"https://api.github.com/users/einpraegsam/orgs","repos_url":"https://api.github.com/users/einpraegsam/repos","events_url":"https://api.github.com/users/einpraegsam/events{/privacy}","received_events_url":"https://api.github.com/users/einpraegsam/received_events","type":"User","site_admin":false},"created_at":"2018-05-14T12:52:50Z","updated_at":"2018-05-14T12:52:50Z","author_association":"OWNER","body":"No not yet, but sounds similar to https://github.com/einpraegsam/powermail_cond/issues/15"}}
{"actor":{"display_login":"einpraegsam"}}