Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

any idea how can i send files to that process.php using ajax ? #3

Open
minanagehsalalma opened this issue Nov 27, 2020 · 5 comments
Open

Comments

@minanagehsalalma
Copy link

for example the first request grabs a file(sends a cookie and receives a file using post) and in the second one i want to send that file that i received to my server.

http = new XMLHttpRequest();
const url = 'test.com/file.img';
http.open('post', url, true);
http.responseType =  "blob";
http.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
test = http.response
var http2 = new XMLHttpRequest();	
http2.open("post", 'myserver/process.php', true);
http2.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
http2.send(test);
@Samirgitthub
Copy link

No

@minanagehsalalma
Copy link
Author

No

ok

@Samirgitthub
Copy link

bro is been 1 year

@Samirgitthub
Copy link

wtf

@minanagehsalalma
Copy link
Author

@minanagehsalalma what do you want i have found the solution anyway !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants