I am using JSZip for zipping some user upload file and store this zip file on a server. zip_file
contains the zip file which I want to store in a server. zip_file
is in base64 format so, if I stored it in PHPMyAdmin as LongText
format, its could not store some zip. Is it possible to convert zip_file
to zipping and move to a directory? If yes how can do it? Or How to store base64 value in PHPMyAdmin.
zip.generateAsync({type:"base64"}).then(function (content) {
zip_file = "data:application/zip;base64," + content;
//zip_file convert and move to /uploads folder
});