Upload and show on-screen at runtime loop with PHP, Jquery, AJAX, javascript

Asked

Viewed 70 times

0

I want to upload an array and at the same time I want to show each file that was "uploaded" in a loop, at the time of execution of the loop, (for this the page can not refresh), avoiding to do all the upload and then load the files on the screen. I am looking not only for a way to do that, but also for a logic to create a system like the one I mentioned. I want to do like this:

Foreach (inicia o loop) {
bla,bla,bla começa o upload bla, bla
echo "upload concluido" e que apareça os dados do upload
}

And then reboot and do it with all the files.

  • Don’t you have code? What’s your question?

  • Sorry for the delay, I don’t have the code, because I have no idea how I’m gonna do it.

  • My question is how I’m gonna do that upload, contextualizing, I have a array 100+ lines in the old script, he picks up does the upload of those 100 files, then loads a page showing all the files that "upei", but what I wanted was this: upload (using a _ for_), but on each archiv_ "upado"-he already loaded the result on the screen, and did so for each cycle of the loop.

  • Let me make one thing clear, this array, it’s an array of files, right? You will upload N files to the server, and wanted to make a control of it. That’s it?

  • Yes, I would like to find a way for my idea to work, that each time "upasse" would show the name of the file "upado", doing so with all the files..

  • All right, I’ll suggest to you in response

  • I edited your question to make it clearer.

Show 2 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.