파일이 업로드되지 않을 수 있는 문제 수정

This commit is contained in:
bnu 2015-05-19 14:23:00 +09:00
parent 395266ca22
commit 8adc874707

View file

@ -26,8 +26,7 @@ class fileController extends file
function procFileUpload()
{
Context::setRequestMethod('JSON');
$file_info = Context::get('Filedata');
$file_info = $_FILES['Filedata'];
// An error appears if not a normally uploaded file
if(!is_uploaded_file($file_info['tmp_name'])) exit();