street9009
asked on
TinyMCE - ImageManager / FileManager
I have a theoretical question that I hope someone can answer.
I have a simple form (that I did not create, btw) that instead of actually submitting the form, passes variables to a URL via javascript. The need has now come up to pass an image file through this form and obviously I am unable to do that (the best I can do is get it to give the filename which doesn't help me any without the full path). So I was hoping to be able to use some of TinyMCE's stuff.
Will TinyMCE help me get a file uploaded to the server and pass the filename through the form "submit"? Please provide examples.
Let me know if anything here doesn't make sense and I'll do my best to clarify.
Thanks!
I have a simple form (that I did not create, btw) that instead of actually submitting the form, passes variables to a URL via javascript. The need has now come up to pass an image file through this form and obviously I am unable to do that (the best I can do is get it to give the filename which doesn't help me any without the full path). So I was hoping to be able to use some of TinyMCE's stuff.
Will TinyMCE help me get a file uploaded to the server and pass the filename through the form "submit"? Please provide examples.
Let me know if anything here doesn't make sense and I'll do my best to clarify.
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks
I think HTML forms do not work that way. You will get a "basename" but you should not be able to get the complete file name, unless you ask the client to type it into an input box.
I can show you how to upload an image file. Please see the code snippet. Read it over -- code, comments and especially man page references and post back here if you still have questions.
Best regards, ~Ray
Open in new window