Zum Hauptinhalt gehen

vertigis temp folder in iis?

Kommentare

5 Kommentare

  • Ryan Cooney

    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
  • Eric Kriener

    thanks @..., I've tried that, but it won't accept a zip file? or what am I missing to make that happen?

    0
  • Eric Kriener

    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
  • Ryan Cooney

    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:

    1. 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.
    2. Use the Read File Bytes activity to read the bytes of the temporary zip file you just created.
    3. Use the Delete File activity to delete the temporary zip file.
    4. Pass the bytes output of Read File Bytes to the Create Download activity's Content input
    5. Pass the resulting url back to the parent application so that it can have the user open it.
    1
  • Eric Kriener

    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

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.