Welcome Guest, Not a member yet? Register   Sign In
Problem with Gallery Image Uploading
#5

[eluser]nzmike[/eluser]
I'm not sure if this is the problem but in your view you have:

Code:
form_upload(');

Which creates a file input with the name "userfile".

Later on you go onto do:

Code:
if(! $this->upload->do_upload(')){

Which will always be true if I'm not mistaken because "Filedata" will not be set.

I doubt this will fix it. The only other thing I can recommend is try simplifying your code a bit. Get rid of everything that isn't to do with uploading an image i.e. the resize you do at the end.

I've only briefly looked at the code but hopefully this will help you find your bug.


Messages In This Thread
Problem with Gallery Image Uploading - by El Forum - 07-18-2010, 09:03 PM
Problem with Gallery Image Uploading - by El Forum - 07-19-2010, 08:48 PM
Problem with Gallery Image Uploading - by El Forum - 07-19-2010, 10:11 PM
Problem with Gallery Image Uploading - by El Forum - 07-20-2010, 08:04 AM
Problem with Gallery Image Uploading - by El Forum - 07-20-2010, 05:48 PM
Problem with Gallery Image Uploading - by El Forum - 07-22-2010, 07:31 PM
Problem with Gallery Image Uploading - by El Forum - 07-22-2010, 08:12 PM
Problem with Gallery Image Uploading - by El Forum - 07-31-2010, 10:20 AM
Problem with Gallery Image Uploading - by El Forum - 07-31-2010, 09:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB