Stuk / jszip-utils

Other
228 stars 193 forks source link

Error: Ajax error for filepath : 404 Not Found #26

Closed olemalik closed 4 years ago

olemalik commented 4 years ago

H! when i deploy and try to download then its say file not found Error: Ajax error for /Areas/Client/UploadedFiles/2327/Driveshaft.dwg : 404 Not Found

Failed to load resource: the server responded with a status of 404 (Not Found)

when i upload jpq or pdf its works fine but .dwg file giving error


    var zip = new JSZip();
    var count = 0;   
    file_paths.forEach(function (url) {
        JSZipUtils.getBinaryContent(url, function (err, data) {
            if (err) {
                //throw err;
                showNotification(err);
            }
            count++;
            if (data != null) {
                zip.file(url, data, { binary: true });

                if (count == file_paths.length) {
                    debugger
                    zip.folder('' + uploadedDirectory+'' + id+'/')
                        .generateAsync({ type: 'blob' }).then(function (content) {
                            debugger

                            saveAs(content, zipFileName);
                        });
                }
            }
        });
    });
}```
Stuk commented 4 years ago

This looks like an problem with your setup or your server rather than an issue in JSZip. I have very little spare time at the moment, so won't be able to help you :(

You might get a better response asking on Stack Overflow or another forum. Good luck!