Welcome Guest, Not a member yet? Register   Sign In
CI problem: Upload image without submitting form?
#2

[eluser]boltsabre[/eluser]
You cannot do an image upload (dynamic) with just javascript or one of it's libraries (ie. jQuery). Ajax, by itself, does not handle file uploads for security reasons. You'll have to use either an iFrame, a Java applet or flash. I'd go with the first method as it doesn't require users to have any extra software/s installed on their machine.

I doubt your problem is with CI, but rather with the process/concept itself (without being able to see any code).

My suggestion, hit google and find some good "dynamic image upload" tutorials, and then code a vanilla php/jQuery/ajax/iFrame upload uploader. Once you've got that up and working, then try to integrate it into your CI project.


Messages In This Thread
CI problem: Upload image without submitting form? - by El Forum - 05-04-2012, 02:21 AM
CI problem: Upload image without submitting form? - by El Forum - 05-04-2012, 04:17 AM
CI problem: Upload image without submitting form? - by El Forum - 05-04-2012, 04:20 AM
CI problem: Upload image without submitting form? - by El Forum - 05-04-2012, 04:22 AM
CI problem: Upload image without submitting form? - by El Forum - 05-04-2012, 04:22 AM
CI problem: Upload image without submitting form? - by El Forum - 05-04-2012, 04:24 AM
CI problem: Upload image without submitting form? - by El Forum - 05-04-2012, 05:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB