Good afternoon, once again raises the question of the transfer of files through ajax. After reading a lot of materials, looking at dozens of different plugins, I wondered if I could transfer the file via ajax by converting the file to text and sending it to the server via post? The question is actually how to turn the selected file in the browser into text or a sequence of bits?

  • Yes, but I'm more interested in the implementation on the basis of technologies that have a little more widespread. I'm not saying that HTML5 is not good, this is excellent, but for a number of reasons I would like to know the answer to the question in the context in which it is given. But anyway, thank you for your reply - ecko
  • @ecko can be downloaded in the old fashioned way iframe. - lampa
  • @lampa Yes, I know and it is through the hidden iframe through the target that I send in most cases from the form, but now I have a question, what will happen, and is it possible to convert the selected file to a byte sequence and send it via POST - ecko
  • @ecko again needs a FileReader, which is only available in html5. Otherwise, you will not sort the file into bytes. - lampa

1 answer 1

I wondered like that .