IIS7 AspNet MVC app. Button does not show

107 views
Skip to first unread message

Mark Swiatek

unread,
Apr 27, 2011, 9:50:08 AM4/27/11
to SWFUpload
I have an MVC3 app that works fine on the ASP.NET Development server.
However when I publish it to an IIS site (either on my dev machine or
remote machine), the button to choose the file does not show. In
Firebug, the html looks the same between the development server and
IIS. If I click and drag the mouse, it appears that I can select the
button, but it can't be clicked. If I disable Javascript in my
browser, the button is visible.

The debug output from makeAsyncUploader turns up one important
difference on the development server, the output looks as below.
However on IIS7, there is no SWFDEBUG statements, i.e., it ends after
the SWF Upload Instance Info.

---SWFUpload Instance Info---
Version: 2.2.0 Beta 2
Movie Name: SWFUpload_0
Settings:
upload_url: /BinFiles/AsyncUpload
flash_url: /Scripts/swfupload.swf?
swfuploadrnd=840430109
use_query_string: false
requeue_on_error: false
http_success:
file_post_name: Filedata
post_params: [object Object]
file_types: *.bin
file_types_description: Conettix bin files
file_size_limit: 3 MB
file_upload_limit: 0
file_queue_limit: 0
debug: true
prevent_swf_caching: true
button_placeholder_id: binFile_swf
button_image_url: /Content/blankButton.png
button_width: 109
button_height: 22
button_text: <font face='Arial' size='13pt'>Choose file</
span>
button_text_style: color: #000000; font-size: 16pt;
button_text_top_padding: 1
button_text_left_padding: 19.5
button_action: -110
button_disabled: false
custom_settings: [object Object]
Event Handlers:
swfupload_loaded_handler assigned: false
file_dialog_start_handler assigned: false
file_queued_handler assigned: true
file_queue_error_handler assigned: true
upload_start_handler assigned: true
upload_progress_handler assigned: true
upload_error_handler assigned: true
upload_success_handler assigned: true
upload_complete_handler assigned: true
debug_handler assigned: true

SWF DEBUG: SWFUpload Init Complete
SWF DEBUG:
SWF DEBUG: ----- SWF DEBUG OUTPUT ----
SWF DEBUG: Build Number: SWFUPLOAD 2.2.0 Beta 2 2008-10-28
SWF DEBUG: movieName: SWFUpload_0
SWF DEBUG: Upload URL: /BinFiles/AsyncUpload
SWF DEBUG: File Types String: *.bin
SWF DEBUG: Parsed File Types: bin
SWF DEBUG: HTTP Success: 0
SWF DEBUG: File Types Description: Conettix bin files (*.bin)
SWF DEBUG: File Size Limit: 3145728 bytes
SWF DEBUG: File Upload Limit: 0
SWF DEBUG: File Queue Limit: 0
SWF DEBUG: Post Params:
SWF DEBUG: ----- END SWF DEBUG OUTPUT ----
SWF DEBUG:

Here's my view code:

<div id="FormContents">
<form enctype="multipart/form-data" method="post">
<p>
Upload your bin file: <input type="file"
id="binFile" name="binFile" />
</p>
<p>
@Html.ActionLink("Back to List", "Index")
</p>
</form>
</div>

<script>
$(function () {
$("#binFile").makeAsyncUploader({
upload_url: "/BinFiles/AsyncUpload",
flash_url: '/Scripts/swfupload.swf',
button_image_url: '/Content/blankButton.png',
file_types: '*.bin',
file_types_description: 'Conettix bin files'
});
});
</script>

The libraries I am using:

<link href="@Url.Content("~/Content/Site.css")" rel="stylesheet"
type="text/css" />
<script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")"
type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")"
type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/swfupload.js")" type="text/
javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-asyncUpload-0.1.js")"
type="text/javascript"></script>

randika

unread,
Aug 28, 2012, 6:24:37 AM8/28/12
to swfu...@googlegroups.com
Hi Mark,
I know this is quite old thread, but I have the same problem with a asp.net 3.5 webapp (non-MVC). Did you manage to fix it?

Thanks
Randika
Reply all
Reply to author
Forward
0 new messages