2017-12-04 7 views
0

블루투스 jQuery-File-Upload를 설치 한 후 업로드가 제대로 작동하는 것 같습니다. 문제는 찾을 수 없기 때문입니다./php/파일 디렉토리에 업로드 된 파일. GitHub의에blueimp jQuery-File-Upload가 업로드 한 파일을 찾을 수 없습니다.

링크 : https://github.com/blueimp/jQuery-File-Upload

  1. 업로드 된 파일의 올바른 디렉토리는 무엇인가?
  2. /php/files 인 경우이 디렉토리에있는 파일을 볼 수없는 이유는 무엇입니까?
  3. 기본 업로드 디렉토리를 변경하는 방법은 무엇입니까?

[루트 @ localhost를 /] # cd를의/var/www/html/업로드/서버/PHP/파일/

[루트 @ 로컬 호스트 파일] # 1!

[루트 @ localhost를 파일 ] 파일 업로드 옵션에서 #

enter image description here

upload progress

답변

0

의 URL 태그 어있다 당신은 서버 방법에 게시하는 데 사용할 수 있습니다.

$('#fileupload').fileupload({ 
     url: '@(Url.Content("~/"))controller_name/your_method_name' 
    }); 

(이것은 그물의 예입니다) 당신의 방법에 당신은 같은 파일을 업로드받을 수 있습니다

var file = Request.Files[i]; // use in for loop 
///// do some other thing /// 
var filePath = your_path; 
file.SaveAs(filePath); 
관련 문제