jumbo125
-
Posts
7 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by jumbo125
-
-
No, normale i would Write Print_r($_FILES) and Show what the php file gives out. That is the reason, for my last question. I didn't know how i can see the Output when the Site doesn't change
-
Thank you for answer. I know how i get upload files via php like:$_FILES [inpuzname]But i Never Try to get files which are uploaded with jsThe other Problem is, that i Write with this file some Database entrys....It will be really nice to See some errorsI will Try the error massage postsSorry for my wr
-
But i Need diffrent namensMaybe i don't understand formdata. I think i need help again.I want to use $_FILES[input name] after upload.....The formdata have only one filename Parameter:Formdata(filename, file)How can i put the input files with the input Name in the formdata. Maybe i understand this, when i can see a code example.Than for your help
// Edit: i try it with an multiple array,
formData("name", "array");
array(
[0] => array
[0] => inputname e.g. field_1
[1] => array mit filename
[0] => filnema 1
[1] => filname2
[1] => array
[0] => inputname e.g. field_2
[1] => array with filenames from second input type
[0] => filename1
[1] => filename2
)
client.send(formData);
If this work, i have only ONE Problem.
i don_t can see the result, because it doesn't change to the php file.... omg, what can I do....
I click on "send" and get only one sentence in the console, but i don't know if there is an fail in the php file, or something more. what can i do to change the site???
i want to get out the POST files eand more.
I think it's reallay difficult to understand my Problem.
with the normall send method, without js submit buttons and action location i changed the site.
than i saw the files with echo and print_ and can create the perfect php file. Now i don't know, what i should wirte in the php file.
-
I know the method appendI don't understand how i can send the formDataFor exampleFormData1.append("file1","filelist1")FormData2.append ("file2", "filelist2")And more... Maybe 10 and more...But how i can send alltogether Client.send(formdata1,formdata3)
-
Thank you very michNow i know how i can put the multiple files in the var file.But i don't know how i use the other input tags. I put the var file in the formdata and send it with the Client.How can i send the other input tags? Can i create more formdata and send all formdata with one client
-
I try to create an Upload with javascript nad progress bar.
i found this code in the internet, but i can't change the code for my idea.
This is the script sample:
var client = null; function uploadFile(){ //Wieder unser File Objekt var file = document.getElementById("fileA").files[0]; var formData = new FormData(); client = new XMLHttpRequest(); if(!file) return; formData.append("datei", file); client.onerror = function(e) { alert("onError"); }; client.open("POST", "upload.php"); client.send(formData);}
my first problem is, that the autor used ONE input tag an set no MULTIPLE.
I have a multiple input tag. I think it's enoug to change:
var file = document.getElementById("fileA").files[0];
to
var file1 = document.getElementById("file1").files; //dlete [0] for all files
and
formData.append("datei", file);
to
formData.append("file1[]", file);// add [] to create an array
is this correct?
AND MY IMPORTANT PROBLEM is, that i have more input tags:
<form>
<input type="file" name="file1">
<input type="file" name="file2">
<input type="file" name="file3">
</form>
How can i pass the code for mulitple tags with different names???????
I search since 4 days for an idea. It will be perfect, if i can send all input with ONE clinet.
IT's really important to read the files with $_FILES[file1], $_FILES[file2]
read zip files with js
in JavaScript
Posted
Hy, I tried to read filenames of zip file. I use the jszip libaray to see the fileneams and check name and type, BUT the libaray can't show me the size of files. or i don't know how i can see it.
Does anybody knows a zip libary, which is easy to use? i don't want compress and uncompress, only read the files and their properties.....
thank you