asp.net mvc - Plupload only working on MVC home -



asp.net mvc - Plupload only working on MVC home -

i have bizarre problem plupload hoping help me with.

i using mvc , amazon s3 and, taking sample works fine.

so in homecontroller index view.

therefore if navigate localhost/ works no problems.

if navigate localhost/home "add file" button not clickable due _flash_container beingness in way.

even if utilize firebug out way "add file" button doesn't anything.

does have idea?

my code follows:

@model mvc3pluploadtoamazons3.viewmodels.fileuploadviewmodel @{ viewbag.title = "index"; } <h2>upload amazon s3</h2> <div id="uploader"> <p>you browser doesn't have flash, silverlight, gears, browserplus or html5 support.</p> </div> <input type="hidden" name="key" value="@model.fileid-${filename}"> <input type="hidden" name="awsaccesskeyid" value="@model.publickey"> <input type="hidden" name="acl" value="@model.acl"> <input type="hidden" name="success_action_redirect" value="@model.redirecturl"> <input type="hidden" name="policy" value="@model.policy"> <input type="hidden" name="signature" value="@model.signature"> @section scriptfiles { <script> $(document).ready(function () { $("#uploader").plupload({ //amazon settings. runtimes: 'flash,silverlight', url: 'https://rapplex.s3-eu-west-1.amazonaws.com', max_file_size: '100000000mb', multipart: true, multipart_params: { 'key': '${filename}', // utilize filename key 'filename': '${filename}', // adding maintain consistency across runtimes 'acl': $('#acl').val(), 'content-type': 'binary/octet-stream', 'success_action_status': '201', 'awsaccesskeyid': $('#awsaccesskeyid').val(), 'policy': $('#policy').val(), 'signature': $('#signature').val() }, // optional, improve specified straight //file_data_name: 'file', // re-use widget (not related s3, plupload ui widget) //multiple_queues: true, // resize images on clientside if can //resize: { width: 320, height: 240, quality: 90 }, // specify files browse filters: [ // { title: "video files", extensions: "mp4,m4v,wmv,avi,mov,mpg,mpeg,mkv" } { title: "image files", extensions: "jpg,gif,png" }, //{ title: "zip files", extensions: "zip" } ], // flash settings flash_swf_url: 'scripts/plupload/plupload.flash.swf', // silverlight settings silverlight_xap_url: 'scripts/plupload/plupload.silverlight.xap' }); }); </script> }

any help appreciated

edit: ok have done farther investigating.

it seems localhost/home work localhost/home/ , localhost/home/index not work.

i have noticed there bunch of @import *.css in initial css file , have changed them /path/to/file.css doesnt create difference. tried removing first forwards slash @imports removed of styling know it's not that.

i tried changing .swf path absolute (localhost:2668/scripts/plupload/plupload.flash.swf) didn't work.

as phloopy pointed out, infact path swf.

see comments answer.

thanks mate.

asp.net-mvc amazon-s3 plupload

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -