Hello all I am using a jQuery uploader called uploadify which uploads multiple files to a server using javascript by having a flash multipicker for your hardrive. This makes it easy to grab a bunch of files all at once instead of one at a time. I have a problem. It would call the same script using ajax to upload the files individually even though you selected multiple items. This would allow me to write a php function in a controller that I named upload to upload that file.
I would like to be able to allow a user to upload all their files during their sign up process. The problem is that Im new to codeigniter and want to use the file upload class but as far as I know you cant find out what type of file it is before you make the upload. Only afterwards you can find out if it is an image or not. The reason for doing this is because I am putting them all in separate folders. One for videos one for music and one for images.
I thought another way around this was to create a seperate upload field for each type of upload and just call a differenct ajax script. This is actually what I would prefer to do but there is another problem. I know that codeigniter uses the name=‘userfile’ to do the upload and I need three uploader fields on my page with different names on them. Can you have multiple upload fields per page with code igniter.
If someone could help me out with this I would be greatly appreciated.