Advertisement
mikjaer

Untitled

Jul 5th, 2017
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. upload.pl:
  2. #!/usr/bin/perl
  3.  
  4. print "Content-type: text/html\n\n";
  5.  
  6. print "<form method='post' action='upload2.pl' enctype='mutipart/form-data'>Upload: <input type=file name=image>\n";
  7.  
  8. print "<input type=submit></form>\n";
  9.  
  10.  
  11. upload2.pl:
  12. #!/usr/bin/perl
  13. print "Content-type: text/html\n\n";
  14. while (<>)
  15. {
  16. print ;
  17. }
  18.  
  19. output:
  20. image=<fileofuploadedfile>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement