U4-4426 - Upload field on Member Type doesn't work

Created by Sebastiaan Janssen 13 Mar 2014, 16:13:56 Updated by Sebastiaan Janssen 13 Apr 2014, 10:18:33

Relates to: U4-4049

Add a property to a member type of type Upload and try to use it when creating a new member, it will give the error below. This error seems very related to the errors that some people are seeing when uploading media. The error doesn't lie, there is indeed no file called D:\temp\WebApplication17\WebApplication17\App_Data\TEMP\FileUploads\BodyPart_d5f8170c-b5d3-46a5-b2e3-71554f1bd093

Error:

Could not find file 'D:\temp\WebApplication17\WebApplication17\App_Data\TEMP\FileUploads\BodyPart_d5f8170c-b5d3-46a5-b2e3-71554f1bd093'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: Could not find file 'D:\temp\WebApplication17\WebApplication17\App_Data\TEMP\FileUploads\BodyPart_d5f8170c-b5d3-46a5-b2e3-71554f1bd093'.

Stack Trace:

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at System.IO.File.OpenRead(String path) at Umbraco.Web.PropertyEditors.FileUploadPropertyValueEditor.ConvertEditorToDb(ContentPropertyData editorValue, Object currentValue) in d:\Dev\Umbraco7\src\Umbraco.Web\PropertyEditors\FileUploadPropertyValueEditor.cs:line 127 at Umbraco.Web.Editors.ContentControllerBase.MapPropertyValues[TPersisted](ContentBaseItemSave1 contentItem) in d:\Dev\Umbraco7\src\Umbraco.Web\Editors\ContentControllerBase.cs:line 116 at Umbraco.Web.Editors.MemberController.MapPropertyValues(MemberSave contentItem) in d:\Dev\Umbraco7\src\Umbraco.Web\Editors\MemberController.cs:line 304 at Umbraco.Web.Editors.MemberController.CreateWithMembershipProvider(MemberSave contentItem, MembershipCreateStatus& status) in d:\Dev\Umbraco7\src\Umbraco.Web\Editors\MemberController.cs:line 547 at Umbraco.Web.Editors.MemberController.PostSave(MemberSave contentItem) in d:\Dev\Umbraco7\src\Umbraco.Web\Editors\MemberController.cs:line 223 at lambda_method(Closure , Object , Object[] ) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass13.<GetExecutor>b__c(Object instance, Object[] methodParameters) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.<>c__DisplayClass5.<ExecuteAsync>b__4() at System.Threading.Tasks.TaskHelpers.RunSynchronously[TResult](Func1 func, CancellationToken cancellationToken)

Comments

Priority: Major

Type: Bug

State: Fixed

Assignee: Shannon Deminick

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.1.0

Due in version: 7.1.0

Sprint:

Story Points:

Cycle: