File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
tap/src/main/java/ca/nrc/cadc/sample Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change
1
+ ### Changed
2
+
3
+ - Switch RubinUploadManagerImpl to use UploadLimits and set a default filesize limit of 32Mb
Original file line number Diff line number Diff line change 68
68
package ca .nrc .cadc .sample ;
69
69
70
70
import ca .nrc .cadc .tap .BasicUploadManager ;
71
-
71
+ import ca . nrc . cadc . tap . upload . UploadLimits ;
72
72
73
73
public class RubinUploadManagerImpl extends BasicUploadManager {
74
-
75
74
/**
76
75
* Default maximum number of rows allowed in the UPLOAD VOTable.
77
76
*/
78
77
public static final int MAX_UPLOAD_ROWS = 100000 ;
79
78
79
+ public static final UploadLimits MAX_UPLOAD ;
80
+
81
+ /**
82
+ * Use A filesize limit of 32 Mb using UploadLimits.
83
+ */
84
+ static {
85
+ MAX_UPLOAD = new UploadLimits (32 * 1024L * 1024L ); // 32 Mb
86
+ MAX_UPLOAD .rowLimit = MAX_UPLOAD_ROWS ;
87
+ }
88
+
80
89
public RubinUploadManagerImpl () {
81
- super (MAX_UPLOAD_ROWS );
90
+ super (MAX_UPLOAD );
82
91
}
83
92
}
You can’t perform that action at this time.
0 commit comments