Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: Release 1.5
-
Component/s: None
-
Labels:None
Description
Stripes should attempt to automatically determine which file upload provider is available. The configuration parameter MultipartWrapper.Class should override everything, but in the absence of the config param RuntimeConfiguration should check first if COS is available on the classpath and then if Commons FileUpload is available. If all three of these fail then it should throw an exception. This way all a developer has to do is drop Commons FileUpload in the lib directory to get it working.
Come to think of it, an exception should only be thrown if the code actually tries to use the MultipartWrapper and one can't be found. There are plenty of apps that don't use multipart requests at all.