Hi all,
I'm a complete beginner. I've managed to set up my form, my SQL database, etc., and all form entries are coming through fine to my e-mail and to the database I'm accessing through phpmyadmin. However, every time I upload a file to the form and send, in my e-mail inbox and in the database I get a link to the uploaded file similar to the following: http://files/12_52_01_name of file.doc . This takes me to a random website http://whyfiles.org/ . I've trawled these (hugely helpful) forums for an answer but couldn't find anything. Are the uploaded files being stored somewhere in my files and I just can't find them? I'd be grateful for any pointers. I've made sure that everything is set to 777, although I've read that that in itself is a security issue (?).
Thanks ever so much,
Amy
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've found my files. Seems like I posted too quickly but it may come in handy for future beginners. I found them in / public_html / form / use / myformname / files / . Logical, I guess...!
Thanks and have a good week,
Amy
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Aaach... I spoke too soon.
I wonder if anyone would be kind enough to let me know what I've done.
I have 2 queries:
1. Double e-mails/I can't find files uploaded through the form in my CPanel file manager. Either that or they aren't uploading.
Today I copied the code for my form into a different webpage, and copied (not moved, because I am completely cack-handed at operating those awful file manager pages on CPanel (Linux) and didn't want to move files away from where they should be) the following: form1.html, process.php, admin, files and global.inc.php to my main directory. Everything works fine, except for two things: 1) I get two e-mails sent to me when the form is submitted. Not a problem, but I guess this is because I "copied" and didn't "move" my files, so I have files doubled up? I'm honestly not sure which files and folders I can trash and which ones I need to keep. 2) I can't find my uploaded files. I had problems finding them yesterday too but can't find them at all now. There's no error message about it when the form is submitted so it can't be a size limit issue...
2. Using the form on different pages
Once I've sorted out that mess, how do I go about using the same form on different pages? Because process.php, form1.html etc. are in the main public_html directory does that mean the form will work on other pages or do I have to renumber the files?
I would be soooo gratful for any help. The most crucial thing is finding my uploaded files.
Thanks,
Amy
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is where your generated form is:
/website/forms/use/formname
This is where uploaded files are:
/website/forms/use/formname/files
This is where your generated forms admin panel is:
/website/forms/use/formname/admin
If you move the form you must move everything together from the form location down (form, files, admin).
No reason for double emails unless the process.php file is called twice or unless the process.php file has been edited.
If you have moved the form and you no longer have the directory structure listed above the form will not function properly. In you message you say that the form1.html and process.php file are in the root. Did you move the files and admin folders to the root?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi TNTEverett,
Thanks so much for replying.
My files just aren't in website/forms/use/formname/files. I just get a file 02_42_28_haar.html that isn't mine.
I'm completely confused.
The code for the form is in a file called quote2.htm and it is located in public_html.
My directory public_html has all my site pages and the following in it:
admin
files
form
form1.html
global.inc.php
process.php
I go to public_html/form/use/formname/files and no files are there.
They're not in public_html/files either, or in public_html/form/forms/files - which I wouldn't expect them to be in anyway.
Should I only have form1.html and process.php in public_html? Should admin and files not be there at all, but ONLY under public_html/form/use/formname/ instead?
Everything about the form works fine, so I guess most of it may be right. It's just the uploads - I can't find them.
I'm immensely grateful for your help.
Amy
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The locations I gave you are the default when a form is generated. I have successfully moved many forms without the types of issues you describe. The location for storing uploaded files is relative to the location of the process.php file therefore the files folder should be at the same relative location when your form is moved. If this does not work then you must check permissions of the new files folder, or check the process.php file for the exact location. If you still need help you will have to send me your form and your process.php files.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you for taking the time to answer. Much appreciated.
Does this mean that everything in / public_html / form / use / formname /
has to be moved into public_html, where process.php is? I've moved the admin and files folder to public_html, though.
So confused.
All my permissions seem to be set at 777.
I'm sending you my form and process.php files.
Thanks so much in advance,
Amy
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all,
I'm a complete beginner. I've managed to set up my form, my SQL database, etc., and all form entries are coming through fine to my e-mail and to the database I'm accessing through phpmyadmin. However, every time I upload a file to the form and send, in my e-mail inbox and in the database I get a link to the uploaded file similar to the following: http://files/12_52_01_name of file.doc . This takes me to a random website http://whyfiles.org/ . I've trawled these (hugely helpful) forums for an answer but couldn't find anything. Are the uploaded files being stored somewhere in my files and I just can't find them? I'd be grateful for any pointers. I've made sure that everything is set to 777, although I've read that that in itself is a security issue (?).
Thanks ever so much,
Amy
I've found my files. Seems like I posted too quickly but it may come in handy for future beginners. I found them in / public_html / form / use / myformname / files / . Logical, I guess...!
Thanks and have a good week,
Amy
Aaach... I spoke too soon.
I wonder if anyone would be kind enough to let me know what I've done.
I have 2 queries:
1. Double e-mails/I can't find files uploaded through the form in my CPanel file manager. Either that or they aren't uploading.
Today I copied the code for my form into a different webpage, and copied (not moved, because I am completely cack-handed at operating those awful file manager pages on CPanel (Linux) and didn't want to move files away from where they should be) the following: form1.html, process.php, admin, files and global.inc.php to my main directory. Everything works fine, except for two things: 1) I get two e-mails sent to me when the form is submitted. Not a problem, but I guess this is because I "copied" and didn't "move" my files, so I have files doubled up? I'm honestly not sure which files and folders I can trash and which ones I need to keep. 2) I can't find my uploaded files. I had problems finding them yesterday too but can't find them at all now. There's no error message about it when the form is submitted so it can't be a size limit issue...
2. Using the form on different pages
Once I've sorted out that mess, how do I go about using the same form on different pages? Because process.php, form1.html etc. are in the main public_html directory does that mean the form will work on other pages or do I have to renumber the files?
I would be soooo gratful for any help. The most crucial thing is finding my uploaded files.
Thanks,
Amy
This is where your generated form is:
/website/forms/use/formname
This is where uploaded files are:
/website/forms/use/formname/files
This is where your generated forms admin panel is:
/website/forms/use/formname/admin
If you move the form you must move everything together from the form location down (form, files, admin).
No reason for double emails unless the process.php file is called twice or unless the process.php file has been edited.
If you have moved the form and you no longer have the directory structure listed above the form will not function properly. In you message you say that the form1.html and process.php file are in the root. Did you move the files and admin folders to the root?
Hi TNTEverett,
Thanks so much for replying.
My files just aren't in website/forms/use/formname/files. I just get a file 02_42_28_haar.html that isn't mine.
I'm completely confused.
The code for the form is in a file called quote2.htm and it is located in public_html.
My directory public_html has all my site pages and the following in it:
admin
files
form
form1.html
global.inc.php
process.php
I go to public_html/form/use/formname/files and no files are there.
They're not in public_html/files either, or in public_html/form/forms/files - which I wouldn't expect them to be in anyway.
Should I only have form1.html and process.php in public_html? Should admin and files not be there at all, but ONLY under public_html/form/use/formname/ instead?
Everything about the form works fine, so I guess most of it may be right. It's just the uploads - I can't find them.
I'm immensely grateful for your help.
Amy
The locations I gave you are the default when a form is generated. I have successfully moved many forms without the types of issues you describe. The location for storing uploaded files is relative to the location of the process.php file therefore the files folder should be at the same relative location when your form is moved. If this does not work then you must check permissions of the new files folder, or check the process.php file for the exact location. If you still need help you will have to send me your form and your process.php files.
Thank you for taking the time to answer. Much appreciated.
Does this mean that everything in / public_html / form / use / formname /
has to be moved into public_html, where process.php is? I've moved the admin and files folder to public_html, though.
So confused.
All my permissions seem to be set at 777.
I'm sending you my form and process.php files.
Thanks so much in advance,
Amy