15,749,185 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View Javascript questions
View C++ questions
View Python questions
View Java questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 10548977 (Top 11 by date)
Member 10548977
20-Sep-19 15:02pm
View
Thank you. I'll take a look.
Member 10548977
20-Sep-19 14:58pm
View
IE 11.737. Chrome's behavior is completely different. Chrome doesn't use a text box to hold the file instead the user is given a remove file clickable link to remove the file.
Member 10548977
20-Sep-19 14:41pm
View
PostedFile is Not null and ContentLegth > 0.
Although I manually removed the file from the control's text value.
Member 10548977
20-Sep-19 14:31pm
View
Thx but the check is ignored. Goes thru the condition as if the value was never removed.
Member 10548977
20-Sep-19 14:17pm
View
FileUpload
Member 10548977
20-Sep-19 14:15pm
View
The plain vanilla upload control from asp.net 4.6.1.
Member 10548977
20-Sep-19 14:04pm
View
That's not the problem. When someone selects a file to upload then decides not to upload the file by removing the file from the control's textbox. The control's text box value retains the name and path of the file. Therefore the path and name of the file is uploaded even though the user removed the file from the control.
Member 10548977
20-Sep-19 11:18am
View
Right. I'm not confused about the issue I'm having. I put what I've tried text in the wrong text boxes in this portal.
Do you understand the issue I'm having?
Member 10548977
19-Sep-19 12:44pm
View
protected void btnUploadPartCDoc_Click(object sender, EventArgs e)
{
/* ************************************************************************************************ */
/* 12/15/2016 RR - Upload file size and type are set in the web.config file. */
/* - Limit File Size to 5MB per upload/client. */
/* - File Type comma delimeted string. */
/* ************************************************************************************************ */
string providerCode = Session["providerCode"].ToString();
string loadFile = string.Empty;
string maxFileSize = ConfigurationManager.AppSettings["MaxUploadFileSize"];
IEnumerable<string> allowedFileTypes = ConfigurationManager.AppSettings["AllowedUploadFileTypes"].Split(',');
string saveDir = @"Document\Refugee\";
string appPath = Request.PhysicalApplicationPath.ToString(); ;
string Lst3 = string.Empty;
string oARegNum = string.Empty;
string imagePath = string.Empty;
string savePath = string.Empty;
string folderPath = string.Empty;
string fileExt = string.Empty;
int fileSize = 0;
bool isValidFileType = false;
Member 10548977
19-Sep-19 12:36pm
View
Can you suggest how do I can clear the control when a user cancels the upload?
Below is my validation.
Member 10548977
18-Sep-19 8:24am
View
Can you think of anything else?
Show More