ajaxSubmit rename filename
Hi,
I'm trying to use ajaxSubmit to upload a file, however i would like this file to be always uploaded with a specific name.
So for instance if a user uploads a file called "foo.png" i want the image to be uploaded with file name "bar.png"
I was looking at the beforeSerialize() and beforeSubmit() callbacks, because they seem to be the right place, however i got confused on how to use them.
Anyone else that knows how todo such a thing, or if it's even possible todo at all?
Arthur