{"action":"opened","issue":{"url":"https://api.github.com/repos/KeelMarktideen/feupload/issues/17","labels_url":"https://api.github.com/repos/KeelMarktideen/feupload/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/KeelMarktideen/feupload/issues/17/comments","events_url":"https://api.github.com/repos/KeelMarktideen/feupload/issues/17/events","html_url":"https://github.com/KeelMarktideen/feupload/issues/17","id":70908177,"number":17,"title":"Download-Link not showing","user":{"login":"iamwebrocker","id":1223080,"avatar_url":"https://avatars.githubusercontent.com/u/1223080?v=3","gravatar_id":"","url":"https://api.github.com/users/iamwebrocker","html_url":"https://github.com/iamwebrocker","followers_url":"https://api.github.com/users/iamwebrocker/followers","following_url":"https://api.github.com/users/iamwebrocker/following{/other_user}","gists_url":"https://api.github.com/users/iamwebrocker/gists{/gist_id}","starred_url":"https://api.github.com/users/iamwebrocker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamwebrocker/subscriptions","organizations_url":"https://api.github.com/users/iamwebrocker/orgs","repos_url":"https://api.github.com/users/iamwebrocker/repos","events_url":"https://api.github.com/users/iamwebrocker/events{/privacy}","received_events_url":"https://api.github.com/users/iamwebrocker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-25T13:12:45Z","updated_at":"2015-04-25T13:12:45Z","closed_at":null,"body":"Hi,\r\n\r\nI set up the feupload in 6.2.11. It basically works, but if I use the \"download\" instance of the plugin, the table won't show the downloadlink. The corresponding column is empty.\r\n\r\nIn my set-up, I chose a different folder from \"uploads/feupload\", and set it in the TS accordingly:\r\n\r\n```\r\nplugin.tx_feupload.file.path = fileadmin/downloads/\r\n```\r\nThis directory is used as a separate storage for a special group of BE-editors as well.\r\nForm the front-end, everthing regarding uploads works, and even the \"delete\" links for the files are working. Only the download-link never shows.\r\n\r\nI debugged around a bit and finally arrived at the viewHelper for the Download in `typo3conf/ext/feupload/Classes/ViewHelpers/DownloadViewHelper.php`\r\n\r\n```\r\nclass DownloadViewHelper extends \\TYPO3\\CMS\\Fluid\\Core\\ViewHelper\\AbstractViewHelper {\r\n\t/**\r\n\t* @param \\Kmi\\Feupload\\Domain\\Model\\Upload $upload\r\n\t*/\r\n\r\n\tpublic function render(\\Kmi\\Feupload\\Domain\\Model\\Upload $upload) {\r\n\t\t$currentConf['labelStdWrap.']['cObject'] = 'TEXT';\r\n\t\t$currentConf['labelStdWrap.']['cObject.']['value'] = $upload->getTitle();\r\n\t\t$conf = array_merge($GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_feupload.']['file.'], $currentConf);\r\n\t\t$conf['ATagParams'] = 'class=\"file download ' . $upload->getFileExt() . '\"';\r\n\t\t$fileReference = $upload->getfileReferences()->toArray()[0];\r\n\t\t$originalResource = $fileReference->getOriginalResource();\r\n\t\t$reference = $originalResource->getStorage()->getPublicUrl($originalResource);\r\n\r\n\t\t$conf['path'] = dirname($reference) . '/';\r\n\r\n\t\treturn $GLOBALS['TSFE']->cObj->filelink(basename($originalResource->getIdentifier()), $conf);\r\n\t}\r\n}\r\n```\r\nIf I comment out line 39: `$conf['path'] = dirname($reference) . '/';`, the download-link will show, and the file is donwloadable.\r\n\r\nWhat is this line for? If I see this correctly, the \"path\" which is set in TS is overwritten, resulting in my case in a simple \".\" in my case -- and so somehow the whole thing returns nothing. I'm not sure what is going on there, since the line before with the `$reference` will return something like `\"index.php?eID=dumpFile&t=&token=fec802688e65a7462762703a940ffaa99dfb7064\" `… \r\n\r\nI am not sure what this is supposed to do, or if my set up with a separate storage is the problem here, since with the sep. storage, the 'indentifier' in the sys_file table is not the complete path on the server, but only the path inside that storage - in my case it's `/mytestfile.png`, not `fileadmin/downloads/mytestfile.png`.\r\n\r\nAnother thing I found while digging around the code is in `ext/feupload/Classes/Domain/Model/Upload.php`, line 201ff, (commented as \"fix me\" already), there the \"uploads/feupload\" path is hard-coded, which surerly won't work if the file path is changed thru the TS setup."}}