I’ve never used the Zip Processor before. What I want to do just is just zip all the files that are in a dynamic folder that has already been updated/created. Seems easy.
Is there any server prep to get the zip processor to work?
I didn’t know if the zip processor would only work when you are also using file upload component? Or it can be used alone? Or if there is a how-to somewhere, I wasn’t able to find one. I found some stuff over at DMXzone, but they all showed using the file upload.
Yeah I know, but even with a file upload action, you normally upload the file which saves it to the server, then load the saved file, then add whatever actions to the loaded file and save the file.
Because you are using a folder which I have never tried I am not sure but I would imagine it still needs to load something in order to process it.
EDIT: Im just trying it out for myself now, if I get it working i will let you know how.
Ok got it working. It also had an error at first, but then i realised the Zip File which you named myzip.zip needs a path to know where to save, so try changing that to /assets/orders/myzip.zip
And you were correct there is no load step required for this at all, so i have an action with one step only called zipfile
Name: newZip1
Zip File: /imagesFolder/myzip.zip
Folder: /imagesFolder/testZipFolder
Saved the action and added at to my page as an auto load server connect command, on page load, it takes the entire folder called testZipFolder and creates a new zip file in the /imagesFolder/ called myzip.zip
When i download that file off my server and decompress it, the folder name of testZipFolder is not retained but rather the unzipped folder is also named myzip and inside it had all the files from the original directory.
I understand that, I would feel the same about learning asp, however to be totally honest I have been manually coding in php for more than a decade, and with Wappler I dont think I use anything even remotely similar to an old manually coded line of php.
It helps having the background knowledge of the concept of what I want to do, like a repeat is a php loop as an example, but honestly I think you could change your server model to php and probably have virtually no learning curve at all.
back on topic, it looks like there is a zip.aspx, which is a .net extension? So maybe there is a config on the server that I missed? Or maybe some rights to use .net? Not sure
I had overwrite and output both checked on mine, may be worth a try just on the off chance.
It does seem the initial error where it actually showed a path issue is gone though?
ASP doesn’t support zip, the Zip Processor calls the ASP.NET version to do the work. The error seems to come from the ASP.NET page. Most common error is missing permissions, does the user under which .NET is running on your server have permissions to write to the folder?