CodeIgniter Forums
Upload problem from pc - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Upload problem from pc (/showthread.php?tid=44830)



Upload problem from pc - El Forum - 08-28-2011

[eluser]erikdrums[/eluser]
I'm using the file upload class which works like a charm from mac but not from a pc neither in ie or firefox. Has anybody else had problems like that?

Help would be greatly appreciated

- Erik


Upload problem from pc - El Forum - 01-19-2012

[eluser]Kyle Ellman[/eluser]
I'm getting the same problem, and it's killing me. Webkit browsers work, PC browsers don't, and firefox 9 for mac also doesn't work. This is really bad.


Upload problem from pc - El Forum - 01-19-2012

[eluser]erikdrums[/eluser]
After a long search and nothing that helped I ended up putting sleep(2) right in front of my upload function. Forget why but it worked!?
Was trying to find where I found this solution, but don't have the time right now. It was somewhere on the php.net site. Hope it helps though.


Upload problem from pc - El Forum - 01-19-2012

[eluser]Kyle Ellman[/eluser]
I was relying on a submit button name for to decide which upload script to trigger. The submit buttons were also custom images rather than the standard button.

When this is done, extra post variables are added to communicate which pixels on the button were pressed. In non-webkit browsers, the original name is never sent by the browser.