File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,13 @@ $(function(){
22
33 var dropbox = $ ( '#dropbox' ) ,
44 message = $ ( '.message' , dropbox ) ;
5+ var modelType = $ ( 'input[name=modelType]' ) . val ( ) ;
56
67 dropbox . filedrop ( {
78 paramname : 'file' ,
89 maxfiles : 10 ,
910 maxfilesize : 5 ,
10- url : '/upload' ,
11+ url : '/upload/' + modelType ,
1112 uploadFinished :function ( i , file , response ) {
1213 //console.log(response);
1314 //$.data(file).find('.carName_prediction').show();
Original file line number Diff line number Diff line change 1111 < body >
1212
1313 < a href ="/ "> < input type =”button” value ="Go Back "> </ a >
14+ < input id ="modelType " name ="modelType " value ="car_make " type ="hidden "/>
15+
1416 < div id ="dropbox ">
1517 < h1 align ="center "> Car Make Prediction</ h1 >
1618 < span class ="message "> Drop images here to predict.</ span >
Original file line number Diff line number Diff line change 1010 </ head >
1111 < body >
1212 < a href ="/ "> < input type =”button” value ="Go Back "> </ a >
13+ < input id ="modelType " name ="modelType " value ="car_model " type ="hidden "/>
14+
1315 < div id ="dropbox ">
1416 < h1 align ="center "> Car Model Prediction</ h1 >
1517 < span class ="message "> Drop images here to predict.</ span >
You can’t perform that action at this time.
0 commit comments