MichaelHooker
Programmer
I use html and php, with IE7. Every example for uploading files I have seen uses a form with an input type of "file" and a submit button.
I have used this and it works well, but it adds an unnecessary stage to my work-flow. The name of the jpg file to be uploaded and the path to it are already contained in a php variable, indeed the former has just been added to a MySQL table with other details about the photo. All I need is, once I have read back the new table entry to check the details, a button to confirm "Yes, that's OK, now upload the file that it relates to".
I have not been able to find any way of programmatically assigning a value to a file-type input box like you can other inputs. I've read that there is no way of avoiding having to browse for the file "unless the browser has allowed local file access via a decreased security setting". Fair enough to limit unauthorised uploads from my computer by other people I suppose, but I can't see any setting in IE7 relating to local file access anyway.
So, do I give up or does anyone know a nifty way around this problem please?
Thanks in advance
Michael Hooker
I have used this and it works well, but it adds an unnecessary stage to my work-flow. The name of the jpg file to be uploaded and the path to it are already contained in a php variable, indeed the former has just been added to a MySQL table with other details about the photo. All I need is, once I have read back the new table entry to check the details, a button to confirm "Yes, that's OK, now upload the file that it relates to".
I have not been able to find any way of programmatically assigning a value to a file-type input box like you can other inputs. I've read that there is no way of avoiding having to browse for the file "unless the browser has allowed local file access via a decreased security setting". Fair enough to limit unauthorised uploads from my computer by other people I suppose, but I can't see any setting in IE7 relating to local file access anyway.
So, do I give up or does anyone know a nifty way around this problem please?
Thanks in advance
Michael Hooker