Mar 10, 2017; 15:17
Mason Miller
Delete file after file_stream is complete (8.6)
I need to delete a file after is is done being streamed. If I comment out the file_stream section this deletes the file just fine. When I stream first, it does not delete. I guessing that I need to make this stuff run synchronously, but I thought that is what it would do as written…
Thanks,
Mason
<?lassoscript
library:'/siteincludes/sitetest.html';
var('path') = encode_sql(action_param('path'));
if:$path >> '.zip' && $path >> ('/users/jw/'+$photographerID +'/');
inline: -username=‘xxxxx', -password = ‘xxxxxx';
File_Stream:
-File=$path
, -Name='photoFavorites.zip'
, -Type='application/zip'
;
/inline;
file_delete:$path;
error_currenterror;
/if;
?>
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso Lasso@lists.lassosoft.com
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Apr 19, 2017; 10:53
Marc Pinnell
Re: Delete file after file_stream is complete (8.6)