vertigis temp folder in iis?
Is there somewhere in the iis file tree for the Vertigis stuff that is a temporary directory that the server cleans itself?
something like the printing output location?
https://xxx.xxx.com/Geocortex/Printing/service/job/result?ticket=BlahBlahBlah
where is that, exactly, by the way? Mine stops at the service folder in windows explorer...
I'm creating directories of files and zipping them to be downloaded and don't want to have to time the workflow to clean up after itself or remember to delete them myself every so often.
-
For Printing, that temporary location is the "Data Directory" you specified in the post installer. Typically this will be "C:\ProgramData\Geocortex\Printing". See https://docs.vertigisstudio.com/printing/latest/help/Default.htm#prn5/help/installation-guide.htm#data
However, you cannot use this as a virtual directory for your own purposes. It won't work and you should not manually modify any files in there.
In a server workflow you can use the Create Download activity to temporarily stash a file for the user to download and it will automatically get cleaned up later. See https://docs.vertigisstudio.com/workflow/latest/help/Default.htm#wf5/help/activities/create-download.htm.
0 -
thanks @..., I've tried that, but it won't accept a zip file? or what am I missing to make that happen?
0 -
more specifically, how does it get populated?
what's the content value, the directory that I've created and put files into? the zip file?If I point it at the directory and set the content to 'application/zip' and give it a filename.zip, it gives me a link that downloads a zip folder, but it's invalid
0 -
The Content input of Create Download needs to be the bytes of a zip file. You can't just point it at a directory.
Assuming you already have a directory of files to be zipped on disk... you typically need to do something like this:
- Create the zip file with the Create Zip From Directory activity. You specify the Source Directory as the file path of the directory to zip up. Set the Destination Directory to a file path where you want to write the zip file to. This will just be a temporary file that we will delete in a moment.
- Use the Read File Bytes activity to read the bytes of the temporary zip file you just created.
- Use the Delete File activity to delete the temporary zip file.
- Pass the bytes output of Read File Bytes to the Create Download activity's Content input
- Pass the resulting url back to the parent application so that it can have the user open it.
1 -
I was creating the zip file fine, but holy smokes, never in a million years would have figured out to read the zip to bytes to then dump into the download.
This works like a dream...even can delete the directory the .zip is created from to further clean stuff up.
THANKS @...!!!!!!!!
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
5 kommentarer