Is it bad practice to store the contents of a PDF file in a class property?
I have a Cart
class which stores information about a customer's shopping cart. Part of the ordering process is that the customer can upload a commercial invoice. Is it bad practice to put the raw contents of that file in a class property (which is persisted through saving to MySQL)?
The files should be relatively small (at most a couple of hundred KB) and there really will only be 1 instance of the class instantiated at the one time.