Problem webfileupload

i create a webpage file, need to upload files .
There was a problem creating the file while the browser was running.
uploadComplete code:

Dim outputFile As FolderItem
Dim output As BinaryStream
For Each file As WebUploadedFile In files
Try
outputFile = New FolderItem(“c:”+file.name)
output = BinaryStream.Create(outputFile , True)
output.Write(file.Data)
Catch e As IOException
Continue
End Try
Next

run website wrong code :

Unhandled UnsupportedFormatException
Message: The path passed into new FolderItem was invalid

Stack:
FolderItem.Constructor%%osi4
Sales_file_upload.Sales_file_upload.FileUploader1_UploadComplete%%o<Sales_file_upload.Sales_file_upload>oA1o
Delegate.IM_Invoke%%oA1o
AddHandler.Stub.31%%A1o
WebFileUploader._SetFiles%%oA1o
WebSession._HandleRequest%i4%oso<HTTPServer.HTTPRequestContext>
WebApplication.HandleHTTPRequest%%oo<HTTPServer.HTTPRequestContext>
_CGIGateway.GatewayRequestThread.Event_Run%%o<_CGIGateway.GatewayRequestThread>

Please help me. thanks

Have you tried specifying the second parameter in the Folderitem constructor? FolderItem.NativePath.

It’s worth noting that your app may not have permission to write directly to the root of the C: drive.