Sha256: ce8add65267d58d319012f34bc9a16de648cd2fc3d731099bcf3ca8684e4c2f1

Contents?: true

Size: 1.33 KB

Versions: 2

Compression:

Stored size: 1.33 KB

Contents

<html>
  <head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <title>mongrel test</title>
    <script src="/javascripts/prototype.js" type="text/javascript"></script>
	<script src="/javascripts/effects.js" type="text/javascript"></script>
	<script src="/javascripts/mup.js" type="text/javascript"></script>
	
<style type="text/css">
#progress-bar {
  width:500px;
  height:25px;
  margin:15px;
  border:solid 1px #000;
  position:relative;
}

#progress-bar #status-bar {
  display:block;
  height:25px;
  width:0;
  background-color:#00f;
  border-right:solid 1px #000;
  position:absolute;
  top:0; left:0;
}

#progress-bar #status-text {
  display:block;
  padding: 0 15px;
  line-height:25px;
  position:absolute;
  top:0; left:0;
}
</style>
  </head>
  <body>
	
<h2>Test file uploading.</h2>
<%= @upid = Time.now.to_i.to_s %>
<form action="/files/upload?upload_id=<%= @upid %>" 
	enctype="multipart/form-data" target='upload' method="post"
	onsubmit="UploadProgress.monitor('<%= escape_js @upid %>')">

  <dl>
    <dt><label>Select a file</label></dt>
    <dd><input name="data" type="file" /></dd>
  </dl>


  <p>
    <input name="commit" type="submit" value="Upload" />
  </p>
</form>

<div id="results"></div>
<div id="progress-bar"></div>

<iframe id="upload" name="upload" src="about:blank"></iframe>

  </body>
</html>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
merb-0.0.8 examples/sample_app/dist/app/views/files/start.herb
merb-0.0.7 examples/sample_app/dist/app/views/files/start.herb