I am having problem of saving an image to the /WebContent/images/ folder in my server. I think i may have missed something important in my codes , and i wonder if you all have any solution for it.
I would start by finding information about the problem. Do error messages appear? Where? What do they say? That sort of thing. Just posting a bunch of code with no information about the failure mode isn't very helpful to anybody.
sorry for missing the information to the problem. The code did not give me any error but it did not work as it should.
I think i may miss important component since in the code, i would like it to store the image at the /WebContent/upload folder in the server, but the image was not there when i ran it.
Thanks for your help. I displayed it and it gave me the path to my file system which resided on the C drive, not the server
path as i would like the image to be stored which is under myApp/WebContent/Upload/.
Also the program ran without any error but the image never store there myApp/WebContent/Upload/.
I don't know what i did wrong. Please help me if you could.