{"issue":{"pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"state":"open","user":{"avatar_url":"https://secure.gravatar.com/avatar/0074300a89b9664101b18747ee7b0fcf?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"0074300a89b9664101b18747ee7b0fcf","url":"https://api.github.com/users/user179282","login":"user179282","id":1122328},"milestone":null,"assignee":null,"updated_at":"2011-11-07T09:52:39Z","labels":[],"comments":0,"closed_at":null,"url":"https://api.github.com/repos/blueimp/jQuery-File-Upload/issues/765","body":"I would kindly ask all of you if you could help me. I'm working in zend framework and I need to adjust my code so, when a user\r\ndrops the file in the browser(before the actual upload), the file name and extension is checked in a sense if it already exists. Depending on the existence of the ifle, an\r\nicon right by the trash icon will appear (green tick if fresh upload, no other file with the same name. Red cross if there is a file).\r\nBut to address a matter that is more important to me, and that is for me to set up the code in a manner so when uploading depending on the file name and file extension, the file is being uploaded in a specific folder. So e.g. an X.png, gets into a \"png\" folder - subfolder \"X\", and Y.pdf gets into a \"pdf\" folder - subfolder \"Y\"\r\n\r\nHere is my code do far...\r\nThis is the upload.php (acting as a model)\r\nhttp://pastebin.com/PVSMDhDM  \r\n\r\nThis is the application.js\r\nhttp://pastebin.com/14nGHPXR\r\n\r\nThis is the jquery.fileupload-ui.js.\r\nhttp://pastebin.com/RmJvgS2N\r\n\r\nThis is the index.phtml\r\nhttp://pastebin.com/5Brwz0xX\r\n\r\nThis is the layout of the index.phtml\r\nhttp://pastebin.com/gEVtxBaf\r\n\r\n\r\nIf anyone is willing to help, I would be very very grateful, I know it a lot of work, I'm a noob and I need all the help I can get.\r\nThank you in advance!","html_url":"https://github.com/blueimp/jQuery-File-Upload/issues/765","number":765,"title":"File uploaded in a folder depending on the file name and extension","id":2160962,"created_at":"2011-11-07T09:52:39Z"},"action":"opened"}