Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $un=mysql_escape_string($this->input->post('uni_name'));
- $tm=mysql_escape_string($this->input->post('team_name'));
- //end
- //file upload
- $pa="";
- if($_FILES["team_photo"]["type"]!='application/zip' ||
- $_FILES["team_photo"]["type"]!='application/rar') {
- $error="File format error. Please choose zip/rar file";
- }
- else if($_FILES["team_photo"]["size"]>10500) {
- $error="File is too large.";
- }
- else {
- $pa="images/ProgrammingContest";
- //here a new folder will create as the name of $un
- move_uploaded_file($_FILES["team_photo"]["tmp_name"],$pa.'/'.$un.'/'.$tm.'.zip');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement