Ejabberd mod_http_upload put_url question

Hi guys, I have mod_http_upload working fine but I would like to upload the different types of files to different domains. So for example, if the file type is JPEG then use the domain jpegupload.example.com and if the file type is mp4 then use the domain mp4upload.example.com.

I am a quite lost in the Erlang code and I am not sure which part I should play with. Could someone please give me some heads up?

Thank you

Add lines like this to the

Add lines like this to the beginning of some functions in mod_http_upload.erl
to learn which ones are executed, and also to know the value of some variables, in this case Val:

?INFO_MSG("Doing something, value of Var is: ~p", [Var]),
Syndicate content