{"action":"created","issue":{"url":"https://api.github.com/repos/tabalinas/jsgrid/issues/107","labels_url":"https://api.github.com/repos/tabalinas/jsgrid/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/tabalinas/jsgrid/issues/107/comments","events_url":"https://api.github.com/repos/tabalinas/jsgrid/issues/107/events","html_url":"https://github.com/tabalinas/jsgrid/issues/107","id":107706182,"number":107,"title":"File type column","user":{"login":"fanturi","id":8436757,"avatar_url":"https://avatars.githubusercontent.com/u/8436757?v=3","gravatar_id":"","url":"https://api.github.com/users/fanturi","html_url":"https://github.com/fanturi","followers_url":"https://api.github.com/users/fanturi/followers","following_url":"https://api.github.com/users/fanturi/following{/other_user}","gists_url":"https://api.github.com/users/fanturi/gists{/gist_id}","starred_url":"https://api.github.com/users/fanturi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fanturi/subscriptions","organizations_url":"https://api.github.com/users/fanturi/orgs","repos_url":"https://api.github.com/users/fanturi/repos","events_url":"https://api.github.com/users/fanturi/events{/privacy}","received_events_url":"https://api.github.com/users/fanturi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tabalinas/jsgrid/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-09-22T12:39:13Z","updated_at":"2015-09-28T08:17:05Z","closed_at":"2015-09-22T23:35:08Z","body":"Hi,\r\n\r\nIs it possible to have a file type column ?\r\nIn the table it could be just an image to allow users to download the file but in edition mode we should be able to add a file.\r\n\r\nIs it already possible ?\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/tabalinas/jsgrid/issues/comments/143670646","html_url":"https://github.com/tabalinas/jsgrid/issues/107#issuecomment-143670646","issue_url":"https://api.github.com/repos/tabalinas/jsgrid/issues/107","id":143670646,"user":{"login":"fanturi","id":8436757,"avatar_url":"https://avatars.githubusercontent.com/u/8436757?v=3","gravatar_id":"","url":"https://api.github.com/users/fanturi","html_url":"https://github.com/fanturi","followers_url":"https://api.github.com/users/fanturi/followers","following_url":"https://api.github.com/users/fanturi/following{/other_user}","gists_url":"https://api.github.com/users/fanturi/gists{/gist_id}","starred_url":"https://api.github.com/users/fanturi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fanturi/subscriptions","organizations_url":"https://api.github.com/users/fanturi/orgs","repos_url":"https://api.github.com/users/fanturi/repos","events_url":"https://api.github.com/users/fanturi/events{/privacy}","received_events_url":"https://api.github.com/users/fanturi/received_events","type":"User","site_admin":false},"created_at":"2015-09-28T08:17:05Z","updated_at":"2015-09-28T08:17:05Z","body":"hi,\r\n\r\nIt's ok to show the files, my problem is to upload the file in the database when the user want to add a new one.\r\n\r\nIn my saveClient function I have this extend :\r\n\r\n```javascript\r\n$.extend(template, {\r\n  file_name: $(\"#file_name\").val(),\r\n  description: $(\"#description\").val(),\r\n  file_descr: $(\"#file_descr\")[0].files[0],\r\n  file_type: $(\"#file_descr\")[0].files[0].type\r\n});\r\n```\r\n\r\nAnd here the ajax call for the insert :\r\n\r\n```javascript\r\n$.ajax({\r\n  url: \"...\",\r\n  type: 'POST',\r\n  dataType: 'json',\r\n  data: {\r\n    method: \"insertTemplate\",\r\n    file_name: item.file_name,\r\n    description: item.description,\r\n    file_descr: item.file_descr,\r\n    file_type: item.file_type\r\n  },\r\n  contentType: false,\r\n  processData: false\r\n}).done(function(response) {\r\n  d.resolve(response[0]);\r\n}).error(function(jqXHR, textStatus) {\r\n  console.dir(jqXHR);\r\n  console.log(textStatus);\r\n});\r\n```\r\nI have this error message :\r\n\r\n> No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://www.test.cc.cec' is therefore not allowed access. The response had HTTP status code 403.\r\n\r\nAny ideas ?\r\n\r\nthanks."}}