Why does the file need to be uploaded to get the file information because of the permissions problem?
I want to get the contents of Excel, the ultimate goal is to write to the database, if you can not upload to get the contents of the file, it is not very good? Of course, it is not said that can be arbitrary fetch, it is necessary for users to trigger certain operations.
Reply content:
Why does the file need to be uploaded to get the file information because of the permissions problem?
I want to get the contents of Excel, the ultimate goal is to write to the database, if you can not upload to get the contents of the file, it is not very good? Of course, it is not said that can be arbitrary fetch, it is necessary for users to trigger certain operations.
Now there are some plugins in the case of JS is also able to deal with similar XLS this binary file, to upload may be for developers feel that the server processing simpler or supporting files more.
Because many browsers are based on security considerations, do not have permission to read the file, only upload permissions. I hang a paragraph on the website to read your system file JS. If you can change it again, is your system obsolete? Can read the user can be stolen a lot of information, and upload permission is only the user to select the file in person, the browser is not authorized to upload files freely