My testers have discovered that if you type free text into a file upload input then none of the buttons on the page work until that text is removed (so the page cannot be submitted).
I am able to replicate this with the following ASPX code (with no code behind):
(Note that I haven't bound any handlers to the page; despite this, the page is submitted when the submit button is clicked only if no text is entered into the upload text box)
Is there any way to prevent users from typing free text into a file upload control? It seems that this is only possible in IE - Firefox and Chrome natively prevent text from being entered into upload input fields.
I've seen solutions elsewhere which suggest hiding input and replacing it with a label / button combo, but this seems like it might cause more problems and work inconsistently across browsers.
I wrote a chat client 1-1 but I need a way to be able to detect if the user is typing and display "UserA is typing message..." just like MSN messenger or yahoo messenger.. how can I detect that?
I have a file upload area and would like to stop the pop-up box area from closing when the user has uploaded their file. Anyone know how I can do this ? this is the code:
I need to figure out a way to prevent users from uploading a couple file types in my vb.net page. How can I prevent users from uploading .msg or .gifs during a file upload?
How do I achieve this:-When user types character like 'abcd' and then '>'(an invalid character for my application), I want to set the text back to 'abcd'. Better if we can cancel the input itself as we do in winforms application. This should happen when user is typing and not on a click of button.I want this to be applied on all text boxes in my web page. This will be easy if the solution is jQuery based. May be something which will start like this.$("input[type='text']")SOLUTIONI used both of the answer provided by @jAndy and @Iacopo (Sorry, couldn't mark as answer to both) as below.
$(document).ready(function() { //makes sure that user cannot enter < or > sign in text boxes. $("input:text").keyup(purgeInvalidChars)
I am using ASP.NET 2.0 and trying to use a simple Form to upload a file to a web service. I have the action attrib set to the url of my web service. However, in firefox, I can't see that it is making any call to that service at all. NOTE: I can throw int the below "Action" value to a browser minus the name of the web method and get a page showing the available web method so I believe the URL for the "Action" attribute is correct.
How can I see what is going on since I don't see any call be made. I am also of the opinion that this might not be the best approach. I am new to the entire web development space so I am trying to find better ways of handling problems.
i want that when a user selects the file to upload then the text area of file upload control should get disabled,only the browse button should be enabled.i want to prevent the user to edit the path of the file upload control..
I need to stop users users using the browser back button and potentially submitting an old version of a form.
I'm storing a guid in a session variable and also writing the value to a hidden form field and then checking the session value against the hidden field value if a user does try to navigate back and submit an old form.
If the form is submitted and the user wants to complete a new copy of the form then a new guid is generated both to the session and to the hidden form field. Now, if the user decides to hit the back button a few times to get the old form and tries to submit it again, the page checks the current guid in session against the guid stored in the form field and it finds a mismatch and prevents the form being submitted.
This works as expected in Chrome and Firefox, but in IE6, when the user hits the back button to view the old form, the new guid value appears in the hidden field of the old form! This means the user can submit the old form again, which we definitely do not want.
I am having fileupload control having its "multiple" attribute equals to "multiple". I am facing a weird issue in CHROME browser. The isse is that onchange event of file upload control is not firing for more than 12 files selected at once. The event is firing if I have 10 files selected at once. On FF and Safari it is working fine. Here is the code:
I know the asp.net file upload control only allows users to select one file at a time, however i am looking for another way using asp.net to allow the users to select multiple files?
I'm looking for a way to have user upload as many images as they want (perhaps via drag and drop) or dynamically adding more upload box.I thought statically fixing (say 6) HTML upload input box is slightly limiting and the user have to click "Browse" button (6 times in this example) and navigating to the folder to pick the file.What is the best practice to achieve this so users find it easy to use? Perhaps with some AJAX magic?I also wouldn't mind having the user click "Upload more" to reveal (say 6 more) HTML upload input box.
I have a quite complex model which has an image as a part of it. While uploding the image i get the following error "The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or a non-white space character among the padding characters"
I am using the async file upload control to upload to a image file. I want the user to upload only jpg files. And for that I am checking the uploadedfile content type in server side, after the upload complets. I wanna check this, before upload starts. There is one javascript method
function startUpload(sender, args){}
but how to access the content type of the file selected by user.
We have a few scenarios which mean users can see other users data if they're on the same machine.
Scenario 1
Login User A Browse to forms with perosnal data Logout User A Login User B Either hit back button until you reach User A's personal data or.. Use browser history to jump directly to user A's personal data.
Scenario 2
Login User A Browse to forms with personal data Close browser New Browser, Use history to go directly to User A's data.
The 2nd one was caused by the browser displaying the page from its cache, so for that one, I added the following to the web.config..
[Code]....
[Code]....
which seems to do the trick, but I need to know how to fix the first part and whether the web.config changes are all that's needed to clear any cache.
I want to upload files to the web servers from the client machines.
Can i upload a file on a network share folder using file upload control?
I would like to create a share folder on a file server sitting next to the web server. If i upload the file from the network share folder instead of uploading it from the client machine does it make any difference?
Will the file be stored in a temporary location before copying to the final destination? Where will be the file stored in this case of uploading it from share folder?
What is better way to large upload file. using a web service or in application itself. If in application, how can we check that files is to upload. actually i dont want user to wait for complete uploading, when it starts uploading user will get response of uploaded and uploading will be done in backgroud. I am not sure this type of task can be done in webservice also so that user doesnot need to wait for complete uploading. and one more query which event fires when the page redirects to another page. Is it Page_UnLoad or Dispose.
I am always thinking about validation in any kind on the webpage (PHP or ASP, it doesn't matter), but never find a good and accurate answer. For example, a I have some GET-Parameter, which defines a SQL query like DESC oder ASC. (SQL-Injection?) Or I have a comment-function for user, where the data is also saved in a database.
Is it enought to check for HTML-tags inside the data? Should the validation done before adding it to the database or showing it on the page? I am searching for the ToDo's which should be always performed with any data given from "outside".
I have the following question on how to do the following:I have developed a website and I want certain users to give to possibility to add a text article to specific pages or maybe into a Forum. These articles are more or less having the same structure like:Big Header, manchet (intro), text with in between small headers. I would like to have this all in the same font-family and depending on the sort of text in a certain font-size.I was thinking of using TinyMCE as a base, because all typographical aspects are in there and it is also possible to add graphics and other video stuff to itt.Is this possible to use this, since I recently found TinyMCE and do not have the knowledge yet about this?And how should the structure be set up?I do hope someone could give some clues or sites where this is discussed.
I am new to C# , i've build a simple web form which shows a result based on 4 pulldown menus. I wish to save this result during the session the user spends on the website, untill the user resubmits the form. So when coming back to the result page, the search results are still shown.http://www.estatewise.nl to see the form in action.
i have problem in uploading 2gb video file using file upload control in asp.net, i have limit the maximum file size in web config file then also it shows error any remedy for that...