{"action":"created","issue":{"url":"https://api.github.com/repos/DMKEBUSINESSGMBH/typo3-mkforms/issues/38","repository_url":"https://api.github.com/repos/DMKEBUSINESSGMBH/typo3-mkforms","labels_url":"https://api.github.com/repos/DMKEBUSINESSGMBH/typo3-mkforms/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/DMKEBUSINESSGMBH/typo3-mkforms/issues/38/comments","events_url":"https://api.github.com/repos/DMKEBUSINESSGMBH/typo3-mkforms/issues/38/events","html_url":"https://github.com/DMKEBUSINESSGMBH/typo3-mkforms/issues/38","id":157333138,"number":38,"title":"Bei MEDIAUPLOAD funktionieren die Validatoren nicht","user":{"login":"digedag","id":965877,"avatar_url":"https://avatars.githubusercontent.com/u/965877?v=3","gravatar_id":"","url":"https://api.github.com/users/digedag","html_url":"https://github.com/digedag","followers_url":"https://api.github.com/users/digedag/followers","following_url":"https://api.github.com/users/digedag/following{/other_user}","gists_url":"https://api.github.com/users/digedag/gists{/gist_id}","starred_url":"https://api.github.com/users/digedag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digedag/subscriptions","organizations_url":"https://api.github.com/users/digedag/orgs","repos_url":"https://api.github.com/users/digedag/repos","events_url":"https://api.github.com/users/digedag/events{/privacy}","received_events_url":"https://api.github.com/users/digedag/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/DMKEBUSINESSGMBH/typo3-mkforms/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"digedag","id":965877,"avatar_url":"https://avatars.githubusercontent.com/u/965877?v=3","gravatar_id":"","url":"https://api.github.com/users/digedag","html_url":"https://github.com/digedag","followers_url":"https://api.github.com/users/digedag/followers","following_url":"https://api.github.com/users/digedag/following{/other_user}","gists_url":"https://api.github.com/users/digedag/gists{/gist_id}","starred_url":"https://api.github.com/users/digedag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digedag/subscriptions","organizations_url":"https://api.github.com/users/digedag/orgs","repos_url":"https://api.github.com/users/digedag/repos","events_url":"https://api.github.com/users/digedag/events{/privacy}","received_events_url":"https://api.github.com/users/digedag/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2016-05-28T10:53:56Z","updated_at":"2016-05-30T07:59:55Z","closed_at":null,"body":"Wenn ich folgendes Upload-Feld einbaue, dann werden die Validatoren ignoriert:\r\n\r\n```xml\r\n<renderlet:MEDIAUPLOAD name=\"upload1\" defaultWrap=\"false\" class=\"file\">\r\n\t<data multiple=\"false\" overwrite=\"false\" showFileList=\"false\"\r\n\t\tcleanfilename=\"true\" reffield=\"upload1\" reftable=\"tx_myext_table\"\r\n\t\tstorage=\"1\"\r\n\t>\r\n\t\t<targetdir><userobj extension=\"FormUtil\" method=\"getUploadFolder\" /></targetdir>\r\n\t\t<beuser><userobj extension=\"FormUtil\" method=\"getBeUserId\" /></beuser>\r\n\t</data>\r\n\t<validators>\r\n\t\t<validator:FILE>\r\n\t\t\t<extension value=\"pdf\" message=\"nur PDF Dateien\" />\r\n\t\t\t<filesizekb value=\"1500\" message=\"Datei zu groß\" />\r\n\t  </validator:FILE>\r\n\t</validators>\r\n</renderlet:MEDIAUPLOAD>\r\n```\r\nUrsache ist meiner Ansicht nach der Punkt, im [Validator zu finden](https://github.com/DMKEBUSINESSGMBH/typo3-mkforms/blob/baba07dbf013fe39fd3f20414d6adbb38455b276/validator/file/class.tx_mkforms_validator_file_Main.php#L16). Er ruft beim Widget getValue() auf und erwartet den Dateinamen. Das Media-Upload liefert aber eine 0. Das sollte die Anzahl der vorhandenen Referenzen sein. Es ist aber nie der Dateiname. Und ich halte es auch für gefährlich, den da zu liefern. Denn der Wert wandert ja am Ende auch im DataHandler in den Ziel-Record.\r\n\r\nIch kann mir nicht vorstellen, daß das bisher nie funktioniert haben soll. Bei DAM besteht ja das gleiche Problem.\r\n\r\nBevor ich nun einen Umbau starte, hätte ich gerne eine Bestätigung, daß es wirklich nicht funktioniert. Vielleicht übersehe ich ja auch irgendetwas...\r\n"},"comment":{"url":"https://api.github.com/repos/DMKEBUSINESSGMBH/typo3-mkforms/issues/comments/222435195","html_url":"https://github.com/DMKEBUSINESSGMBH/typo3-mkforms/issues/38#issuecomment-222435195","issue_url":"https://api.github.com/repos/DMKEBUSINESSGMBH/typo3-mkforms/issues/38","id":222435195,"user":{"login":"digedag","id":965877,"avatar_url":"https://avatars.githubusercontent.com/u/965877?v=3","gravatar_id":"","url":"https://api.github.com/users/digedag","html_url":"https://github.com/digedag","followers_url":"https://api.github.com/users/digedag/followers","following_url":"https://api.github.com/users/digedag/following{/other_user}","gists_url":"https://api.github.com/users/digedag/gists{/gist_id}","starred_url":"https://api.github.com/users/digedag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digedag/subscriptions","organizations_url":"https://api.github.com/users/digedag/orgs","repos_url":"https://api.github.com/users/digedag/repos","events_url":"https://api.github.com/users/digedag/events{/privacy}","received_events_url":"https://api.github.com/users/digedag/received_events","type":"User","site_admin":false},"created_at":"2016-05-30T07:59:55Z","updated_at":"2016-05-30T07:59:55Z","body":"TODOs:\r\n- [ ] Datahandler soll alle Nicht-TCA-Felder vor dem [Speichern aus dem Record](https://github.com/digedag/rn_base/blob/master/util/class.tx_rnbase_util_TCA.php#L339) entfernen. \r\n- [ ] Nach Speichern der Daten sollte ein Redirect erfolgen\r\n- [ ] Neues Attribut **isSaveable()** für Widgets. Diese wird für MEDIAUPLOAD per default auf false gesetzt.\r\n- [ ] Klasse **tx_mkforms_widgets_damupload_Main** in **tx_mkforms_widgets_mediaupload_Main** umbenennen"}}
{"actor":{"display_login":"digedag"}}