<script src="/javascripts/multifile.js"></script>
<iframe style="width: 0px; height: 0px; border: 0px" src="/blank.html" name="_hidden"></iframe>
<h2>Images and Videos</h2>
<div id="upload01">
<form enctype="multipart/form-data" action="file_upload" method = "post" target = "_hidden" >
<input id="my_file_element" type="file" name="file_1" >
<input type="submit" value="Upload" name="submit" id="uploadbutton" onclick="document.getElementById('files_list').innerHTML = progress_text;">
</form>
<!-- This is where the output will appear -->
<div id="files_list" style="border: 1px solid #ccc; width: 500px;"></div>
<script>
<!-- Create an instance of the multiSelector class, pass it the output target and the max number of files -->
var multi_selector = new MultiSelector( document.getElementById( 'files_list' ), 30 );
<!-- Pass in the file element -->
multi_selector.addElement( document.getElementById( 'my_file_element' ) );
</script>
</div>
which called a javascript on the (parent of the iframe which is the
same as the page with the upload form) to populate a text field and
hidden field with the information about the just-uploaded file
my model is using acts_as_attachment:
class UploadedFilePageAttribute < ActiveRecord::Base
which called a javascript on the (parent of the iframe which is the
same as the page with the upload form) to populate a text field and
hidden field with the information about the just-uploaded file
my model is using acts_as_attachment:
class UploadedFilePageAttribute < ActiveRecord::Base