File upload method and apparatus based on webkit core browser

The present invention proposes a method based on the file upload browser webkit core, which comprises using the request url webkit core browser UIWebView control monitor page upload files associated with the trigger button is linked; Analyzing UIWebView control the monitored url request at the beginning of the agreement contains the agreement, if the judgment result is positive, receive and upload files; otherwise, do not upload files. The present invention also provides a browser-based webkit core file upload device. File uploading method and apparatus of the present invention by UIWebView control monitoring url requests and determines the beginning of the protocol whether the request contains the contract, if the determination result is YES, to receive and upload files; otherwise, not a file upload, to solve the conventional iOS device the webkit browser can not upload the file in question, to facilitate users to upload files.