나는 테이블에서 새 파일 위치의 동작을 변경하기 위해 blueimp 파일 업로드 스크립트 내부에서 위치를 찾으려고합니다. 어떻게 파일 목록의 끝 insted 테이블의 상단에 추가하여 그들을 강제로?blueimp jQuery 파일 새 파일 업로드 순서
2
A
답변
1
나는 fileuploaddone에 이벤트 리스너를 덮어 쓰고 append 대신 prepend를 추가하여 만들었습니다.
그것은 그냥 부동산 prependFiles 추가이
$('.fileupload').fileupload({
url: 'phpUpload/index.php?customDir='+saveFolder,
dataType: 'json',
dropZone: $(this),
autoUpload: true,
acceptFileTypes: /(\.|\/)(gif|jpe?g|png|pdf|mp3|mp4|wav|doc|docx|ppt)$/i,
maxFileSize: 150000000, // 150 MB
// Enable image resizing, except for Android and Opera,
// which actually support image resizing, but fail to
// send Blob objects via XHR requests:
disableImageResize: /Android(?!.*Chrome)|Opera/
.test(window.navigator.userAgent),
previewMaxWidth: 100,
previewMaxHeight: 100,
previewCrop: true
}).on('fileuploadadd', function (e, data) {
// you can leave this out if you want the default design
data.context = $('<div/>').addClass('existingMediaFile');
$.each(data.files, function (index, file) {
var node = $('<a/>').append($('<span/>').text(file.name));
node.appendTo(data.context);
});
}).on('fileuploaddone', function (e, data) {
$.each(data.result.files, function (index, file) {
$(data.context.children()[index]).prepend(file.name+' '+file.thumbnailUrl);
});
})
1
같이 : 사실을
예 :
$('.fileupload').fileupload({
url: 'your_url',
dataType: 'json',
prependFiles:true
});
관련 문제
- 1. blueimp jQuery 파일 업로드 리디렉션
- 2. jQuery 파일 업로드 blueimp 구성
- 3. Blueimp 파일 업로드 : 단일 파일 업로드
- 4. Blueimp jquery 파일 업로드. 이미지와 다른 파일 업로드
- 5. PHP로 UploadHandler.php 호출하기 - blueimp jQuery 파일 업로드
- 6. 여러 파일 업로드 - Blueimp jQuery 업 로더
- 7. Blueimp jQuery 파일 업로드 오디오/비디오 미리보기
- 8. Blueimp 파일 업로드 및 Codeigniter
- 9. blueimp 파일 업로드 : ajax 호출
- 10. Blueimp 업로드 - 원본 파일 폐기
- 11. jquery 파일 업로드 (blueimp) - IE9는 다중 파일 선택을 지원하지 않습니다?
- 12. Blueimp jQuery 파일 업로드 - 업로드 디렉토리를 변경하는 방법
- 13. Twitter에서 Blueimp Jquery 파일 업로드 플러그인을 사용하여 여러 이미지 업로드
- 14. blueimp 파일 업로드 PHP로 서버 측 진행
- 15. Blueimp 파일 업로드 SyntaxError : 예기치 않은 토큰 {
- 16. 는 blueimp 파일 업로드의 jQuery 플러그인
- 17. Blueimp 파일 업로드 플러그인이 한 번만 업로드됩니다.
- 18. blueimp 파일 업로드. 기존 파일 목록을 정리하는 방법
- 19. blueimp jQuery 파일 업로드에 자신의 파일 프로세스 처리기를 사용하는 방법?
- 20. Blueimp/jQuery-File-Upload의 필터 파일
- 21. blueimp 파일 업로드 vb.net no thumbnail showing
- 22. Blueimp 파일 업로드 angularjs json 접두사
- 23. Blueimp 파일 업로드 크기 조정 및 Chrome?
- 24. BlueImp 파일 추가 매개 변수 업로드
- 25. JQuery Ajax 파일 업로드
- 26. Blueimp Jquery 파일 업로드 : 썸네일 미리보기 이미지가 표시되지 않습니다.
- 27. Blueimp jQuery 파일 업로드 추가 타이틀 필드 편집
- 28. Blueimp jQuery 다중 파일 업로드 플러그인 $ (this) .fileupload() 함수가 아닙니다.
- 29. 각 파일에 대한 Blueimp/Jquery 파일 업로드 진행률 표시 줄
- 30. 내 blueimp jQuery 파일 업로드 스크립트가 작동하지 않는 이유는 무엇입니까?