« first day (1943 days earlier)      last day (3008 days later) » 

user1596138
4:27 PM
 
6:05 PM
text
 
 
1 hour later…
7:15 PM
this is a test...

Hello, smart people.

I am trying to upload a file to an api using ajax. But am having trouble.

I am using jQuery's ajax method like so:

var formdata = formdata.append('images', this.files[0]);

$.ajax({
url: "http://localhost/s3_api/public/images",
contentType: 'application/json; charset=utf-8',
method: 'POST',
data: formdata,
processData: false
});
 
HAMMERTIME
 
@KevinB Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com or pastie.org
 
well?
 
@KevinB doesn't match the trigger because of text in the front
 
@rlemon did you just have all those ready on hand?
 
7:16 PM
$.ajax({
url: "http://localhost/s3_api/public/images",
contentType: 'application/json; charset=utf-8',
method: 'POST',
data: formdata,
processData: false
});
text below doesn't
seem to matter
so much
er, she may ignore me because i'm a RO
 
but how was my example different from the other? all i added was one line of text
 
why does Cap ignore ROs posting code walls?
 
@Trasiva Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
@ssube I can't remember if that is the case or not
 
and cap didn't delete my message, just gave me the notice
 
7:17 PM
She's just moving slow.
 
Ah, my reputation.
crap, i waited too long and can't delete it now
 
i see... the ... that i removed :)
that's how user got around it
 

« first day (1943 days earlier)      last day (3008 days later) »