Media Error - Nothings shows up

Topics: General, Troubleshooting
Oct 4, 2013 at 7:15 PM
Hello,

When I'm trying to upload pictures either in Media Module or from WYSIWYG, I get the following:

Server Error in '/' Application.

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Unexpected "string" keyword after "@" character. Once inside code, you do not need to prefix constructs like "string" with "@". Source Error:



Line 34: maxFileSize: @Model.MaxRequestLength, Line 35: @if (!string.IsNullOrEmpty(Model.UploadAllowedFileTypeWhitelist)) {
Line 36: @string.Format("acceptFileTypes: /({1}.|{1}/)({0})$/i,\n", Model.UploadAllowedFileTypeWhitelist, "\");
Line 37: }
Line 38: resizeMaxWidth: 1920,

Source File: /Modules/FileManager/Views/admin/Add.cshtml Line: 36

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1008


Any ideas? What could be causing his?

Regards,
TJ Havens
Coordinator
Oct 4, 2013 at 8:42 PM
There is a bug in that FileManager module that you added.
Oct 4, 2013 at 10:16 PM
hmm... probably should have noticed this... Thanks Bertrand... All good.