Posted By

wolfie on 02/13/07


html perl file-handling

Versions (?)

How to make sure the filename you want is output to a browser

 / Published in: Perl

Use this to display a file properly if you are reading it from another location and wish to direct it to the user's browser

  1. print "Content-type: image/jpeg\n";
  2. print "Content-disposition: inline; filename=$file\n\n";
  3. print $content;

Report this snippet  

You need to login to post a comment.