Sha256: 3d28dd0bba0bb51ac132e705188965956b957b7195c33800f5c74fe00c89e5dc

Contents?: true

Size: 363 Bytes

Versions: 4

Compression:

Stored size: 363 Bytes

Contents

<?xml version="1.0"?>

<html>

	<?r 
		file = context['file'].read
		File.open('public/image.png', 'wb') do |f|
			f << file
		end
	?>

	<h1>#{request['title']}</h1>	

	<p><img src="image.png" /></p>

	<p>
		<strong>original:</strong> #{request['file'].original_filename}<br />
		<strong>content type:</strong>#{request['file'].content_type}<br />
	</p>

</html>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nitro-0.14.0 examples/tiny/public/upload.xhtml
nitro-0.15.0 examples/tiny/public/upload.xhtml
nitro-0.16.0 examples/tiny/public/upload.xhtml
nitro-0.17.0 examples/tiny/public/upload.xhtml