This topic is locked

MultiFile or .zip upload

4/4/2011 3:50:47 AM
PHPRunner General questions
P
PeteT. author

Hello,
is it possible to upload a complete folder, or the multiple files in it at once?

As an alternative it would be ok to upload an .zip which gets extracted automaticly in a random named folder on the server.
Is this possible?
Greets Peter

S
swanside 4/5/2011



Hello,
is it possible to upload a complete folder, or the multiple files in it at once?

As an alternative it would be ok to upload an .zip which gets extracted automaticly in a random named folder on the server.
Is this possible?
Greets Peter


You would need to have the fields in your database to upload to.

Say you only want to upload 1 file, in your database, you would have 1 field called 'File' as a LONGBLOB or LONGTEXT and a field as a VARCHAR for the filename
If you wanted to upload 10 at a time, you would need 20 fields, so you would have the following.
'File01' LONGBLOB or LONGTEXT and a field as a VARCHAR for the 'filename01'

'File02' LONGBLOB or LONGTEXT and a field as a VARCHAR for the 'filename02'

'File03' LONGBLOB or LONGTEXT and a field as a VARCHAR for the 'filename03'

'File04' LONGBLOB or LONGTEXT and a field as a VARCHAR for the 'filename04'

'File05' LONGBLOB or LONGTEXT and a field as a VARCHAR for the 'filename05'

'File06' LONGBLOB or LONGTEXT and a field as a VARCHAR for the 'filename06'

'File07' LONGBLOB or LONGTEXT and a field as a VARCHAR for the 'filename07'

'File08' LONGBLOB or LONGTEXT and a field as a VARCHAR for the 'filename08'

'File09' LONGBLOB or LONGTEXT and a field as a VARCHAR for the 'filename09'

'File10' LONGBLOB or LONGTEXT and a field as a VARCHAR for the 'filename10'
You could do as you say, zip all the files up, and have one field for zipped files, and just upload that.