<p>Methods and apparatus for uploading a file based on a webkit kernel browser are disclosed herein. A UIWebView control in the webkit kernel browser can be used to monitor a url request. The url request is linked with a triggering button related to a file for uploading on a webpage. It is then determined whether the url request monitored by the UIWeb View control contains an agreed protocol header. When the url request is determined that contains the agreed protocol header, the file for uploading is received and uploaded. When it is determined that the url request does not contain the agreed protocol header, the file for uploading is not uploaded. An apparatus for uploading a file based on a webkit kernel browser can include a monitoring module and a determination executing module.</p>