i use Blueimp jQuery File Uploader and i want to update user's disk space used by getting filesize of each file including filesize of thumbnail (if file is image) in database. i noticed that each file, sends separate request to server so there will be mysql_query for each file.
- first of all: where to put the mysql_query
- 2nd: is it ok to run a update query foreach file?