Welcome Guest, Not a member yet? Register   Sign In
Why, when uploading files via Ajax, is CodeIgniter throwing a “no file uploaded” error?
#11

[eluser]codeigniterzzz[/eluser]
[quote author="codeigniterzzz" date="1352343054"][quote author="codeigniterzzz" date="1352342953"][quote author="Aken" date="1352342538"]Try using your developer tools console of choice and see what kind of data is being posted.[/quote]

ok, sad thing is i don't use debuggers or anything additional from teh default php error displays...

perhaps, if it is not too much to ask for can you possibly create a simple scenario that does work. Basically all im trying to do is upload images via ajax to a codeigniter website using codeigniters default file upload class.

If it isn't too much to ask for, who know maybe there is somethign to learn here.[/quote]

plus ive been trying to figure this out for hours now...im losing my mind...[/quote]

heck i even asked this on stackoverflow an hr ago, no one could figure the issue... here is the link:

http://stackoverflow.com/questions/13281...e-uploaded
#12

[eluser]xeroblast[/eluser]
ive been reading about FormData()

could you try this:
Code:
formdata.append("imagetoresize",imgfile.files[0]);
change to
Code:
formdata.append("imagetoresize",imgfile[0].files[0]);




Theme © iAndrew 2016 - Forum software by © MyBB