{"action":"created","issue":{"url":"https://api.github.com/repos/1up-lab/OneupUploaderBundle/issues/159","labels_url":"https://api.github.com/repos/1up-lab/OneupUploaderBundle/issues/159/labels{/name}","comments_url":"https://api.github.com/repos/1up-lab/OneupUploaderBundle/issues/159/comments","events_url":"https://api.github.com/repos/1up-lab/OneupUploaderBundle/issues/159/events","html_url":"https://github.com/1up-lab/OneupUploaderBundle/issues/159","id":53407718,"number":159,"title":"Gaufrette orphanage","user":{"login":"Looted","id":6255880,"avatar_url":"https://avatars.githubusercontent.com/u/6255880?v=3","gravatar_id":"","url":"https://api.github.com/users/Looted","html_url":"https://github.com/Looted","followers_url":"https://api.github.com/users/Looted/followers","following_url":"https://api.github.com/users/Looted/following{/other_user}","gists_url":"https://api.github.com/users/Looted/gists{/gist_id}","starred_url":"https://api.github.com/users/Looted/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Looted/subscriptions","organizations_url":"https://api.github.com/users/Looted/orgs","repos_url":"https://api.github.com/users/Looted/repos","events_url":"https://api.github.com/users/Looted/events{/privacy}","received_events_url":"https://api.github.com/users/Looted/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-01-05T15:34:20Z","updated_at":"2015-03-10T01:17:08Z","closed_at":null,"body":"Hello!\r\nI have a question regarding orphanage with the gaufrette filesystem. I need to use orphanage along with Amazon S3. I need to implement removing items from orphanage however, so files can be dynamically removed from dropzone (so that if someone uploads two files, removes one and submits the form, only one gets moved from the orphanage). Right now the config is as follows:\r\n\r\n    oneup_uploader:\r\n        mappings:\r\n            job_pdf:\r\n                frontend: dropzone\r\n                storage:\r\n                    type: gaufrette\r\n                    filesystem: gaufrette.test_filesystem\r\n                use_orphanage: true\r\n        orphanage:\r\n            maxage: 86400\r\n        directory: orphanage\r\n\r\nThe filesystem points to web/uploads for now (it will be switched to Amazon S3 on production server). The orphanage saves files outside the filesystem however - not relative to the filesystem root. It should be web/uploads/orphanage, but saves to web/orphanage. Please advise. \r\n\r\nWith regards"},"comment":{"url":"https://api.github.com/repos/1up-lab/OneupUploaderBundle/issues/comments/77978517","html_url":"https://github.com/1up-lab/OneupUploaderBundle/issues/159#issuecomment-77978517","issue_url":"https://api.github.com/repos/1up-lab/OneupUploaderBundle/issues/159","id":77978517,"user":{"login":"Thommas","id":3374368,"avatar_url":"https://avatars.githubusercontent.com/u/3374368?v=3","gravatar_id":"","url":"https://api.github.com/users/Thommas","html_url":"https://github.com/Thommas","followers_url":"https://api.github.com/users/Thommas/followers","following_url":"https://api.github.com/users/Thommas/following{/other_user}","gists_url":"https://api.github.com/users/Thommas/gists{/gist_id}","starred_url":"https://api.github.com/users/Thommas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Thommas/subscriptions","organizations_url":"https://api.github.com/users/Thommas/orgs","repos_url":"https://api.github.com/users/Thommas/repos","events_url":"https://api.github.com/users/Thommas/events{/privacy}","received_events_url":"https://api.github.com/users/Thommas/received_events","type":"User","site_admin":false},"created_at":"2015-03-10T01:17:08Z","updated_at":"2015-03-10T01:17:08Z","body":"\"The files get saved to the base path, and not the documents directory. It is the same for gaufrette local storage or AWS S3.\"\r\nIf you read the documentation, they explained why on the local directory, the path follow a static pattern with the user SessionID. If you're trying to change how files are stored on the local directory when using orphanage, I believe this is just not possible for now.\r\nHowever, if you follow my configuration, the directory will be used when uploading to AmazonS3.\r\nIt's working for me.\r\n\r\n    \"oneup/uploader-bundle\": \"~1.3\",\r\n    \"knplabs/knp-gaufrette-bundle\": \"*@dev\","}}