- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
Hello,
i´m creating an image gallery with "lightgallery", everything is correct except the download button that do nothing.
I´m trying flietransfer and file plugins but i´m doing something wrong.
I there any easy way to make a button to download images from the gallery i´ve created to the device?
1 솔루션
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
David,
I am using File Transfer with success. See my code:
var ft = new FileTransfer(); var options = new FileUploadOptions(); var headers={'Authorization':'authHeader'}; ft.download( uri, fileURL + CNome, function(entry) { //CNome is the name of my file $("#imgImagemEvento").attr("src", entry.toURL() + "/" & CNome ); $('#divImagemEvento').show(); }, function(error) { alert("download error source " + error.source); alert("download error target " + error.target); alert("upload error code" + error.code); }, true, options );
Try it.
Hamilton
링크가 복사됨
5 응답
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
David,
I am using File Transfer with success. See my code:
var ft = new FileTransfer(); var options = new FileUploadOptions(); var headers={'Authorization':'authHeader'}; ft.download( uri, fileURL + CNome, function(entry) { //CNome is the name of my file $("#imgImagemEvento").attr("src", entry.toURL() + "/" & CNome ); $('#divImagemEvento').show(); }, function(error) { alert("download error source " + error.source); alert("download error target " + error.target); alert("upload error code" + error.code); }, true, options );
Try it.
Hamilton
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
David> yes, the CNome is my variable with the file name. You can use any name to this variable or even put the name directly ( + "/yourFileName")
Hamilton
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
Thanks Hamilton,
I´m going crazy, i´m not sure what i´m doing wrong.... can i send you my project and check it?
