Posts: 114
Threads: 42
Joined: Jan 2010
Reputation:
0
With file uploads ... can the files be uploaded to a different web site other than the one the form resides in? (On the same server though) I have installed FormTools in a support site but the first form I am using it on is on the same server ... but a different web site. If I set the path and the url to the uploads folder to a folder in the same site as FormTools is installed ... it is fine. If I set it to the same site as the one the form is on ( all permissions are correct) ... it argues that the permissions are NOT correct. Can you enlighten me on this?
Also, with regards to the Captcha stuff, the docs seem to indicate that unless FormTools is installed on the site with the form that you want to add the Captcha to, it will not work .... is that correct?
Cheers
Dave
Posts: 2,456
Threads: 39
Joined: Dec 2008
Reputation:
6
Hey Dave,
Sorry for not catching your post earlier. Did you have any luck figuring this stuff out?
Quote:With file uploads ... can the files be uploaded to a different web site other than the one the form resides in?
I've created and worked with plenty of forms that POST their content to another server, but I can't think of any time I've included a file with it... but I certainly don't see why you couldn't. Could you perhaps ask your hosting providers about this? I wonder if perhaps it's being prevented for security purposes.
Quote:Also, with regards to the Captcha stuff, the docs seem to indicate that unless FormTools is installed on the site with the form that you want to add the Captcha to, it will not work .... is that correct?
For the CAPTCHA, I believe that's correct - it's certainly correct for different servers (since the API and the CAPTCHA are PHP based & you can't include PHP from another server). However, you can certainly try it with two different sites on the same server. It may be the case that if you can run PHP on one site from the other, it may work. But I suspect you'll run into problems.
- Ben
That said, you may be able to get it going if you're on the same server... I can't think offhand whether r not
Posts: 114
Threads: 42
Joined: Jan 2010
Reputation:
0
Hi Ben,
(Jan 16th, 2010, 11:04 AM)Ben Wrote: Hey Dave,
Sorry for not catching your post earlier. Did you have any luck figuring this stuff out?
Not yet. I am going to look at it again tomorrow.
Quote:With file uploads ... can the files be uploaded to a different web site other than the one the form resides in?
I've created and worked with plenty of forms that POST their content to another server, but I can't think of any time I've included a file with it... but I certainly don't see why you couldn't. Could you perhaps ask your hosting providers about this? I wonder if perhaps it's being prevented for security purposes.
It is my server and so the answer is no, it is not being prevented for any kind of security.
Quote:Also, with regards to the Captcha stuff, the docs seem to indicate that unless FormTools is installed on the site with the form that you want to add the Captcha to, it will not work .... is that correct?
For the CAPTCHA, I believe that's correct - it's certainly correct for different servers (since the API and the CAPTCHA are PHP based & you can't include PHP from another server). However, you can certainly try it with two different sites on the same server. It may be the case that if you can run PHP on one site from the other, it may work. But I suspect you'll run into problems.
So, the normal use of FormTools is to install a copy in every site you want to use it to control and manage forms?
Dave
Posts: 2,456
Threads: 39
Joined: Dec 2008
Reputation:
6
Hey Dave,
Quote:So, the normal use of FormTools is to install a copy in every site you want to use it to control and manage forms?
For me, no. I use it to manage forms on multiple sites - but most of the forms I use are just direct submit forms. But people who needed API forms they'll be stuck with installing it on each site. Not great, I agree. But unfortunately, there's really no way around it - the API directly connects with the FT database, which couldn't be done remotely (at least, not easily without implementing some sort of web service or something...).
But with regard to file uploads, this actually shouldn't be a problem. I just tried uploading a form from one site to a Torm Tools installation on another site and it was submitted fine.
- Ben
Posts: 114
Threads: 42
Joined: Jan 2010
Reputation:
0
Hey Ben,
I asked this under new features but thought I would ask it here as it directly relates: any way to implement a progress bar into the file upload function? Ever thought of using Perl for this function to get around the file size restrictions of PHP?
Dave
(Jan 18th, 2010, 11:13 AM)Ben Wrote: Hey Dave,
Quote:So, the normal use of FormTools is to install a copy in every site you want to use it to control and manage forms?
For me, no. I use it to manage forms on multiple sites - but most of the forms I use are just direct submit forms. But people who needed API forms they'll be stuck with installing it on each site. Not great, I agree. But unfortunately, there's really no way around it - the API directly connects with the FT database, which couldn't be done remotely (at least, not easily without implementing some sort of web service or something...).
But with regard to file uploads, this actually shouldn't be a problem. I just tried uploading a form from one site to a Torm Tools installation on another site and it was submitted fine.
- Ben
Posts: 2,456
Threads: 39
Joined: Dec 2008
Reputation:
6
Quote:any way to implement a progress bar into the file upload function?
Good question. I've never done that myself; presumably you'd need a way to send snippets of info back to the client to give it an idea of how much of the file is left to upload. But I don't know much about it, sorry.
Quote:Ever thought of using Perl for this function to get around the file size restrictions of PHP?
Not really. The PHP restrictions are all configurable, but of course it all depends on your hosting environment as to how large a file may be uploaded. I think I'll keep FT just with PHP though, and not move into Perl or other languages.
All the best -
Ben
Posts: 114
Threads: 42
Joined: Jan 2010
Reputation:
0
(Mar 22nd, 2010, 7:22 PM)Ben Wrote: Quote:any way to implement a progress bar into the file upload function?
Good question. I've never done that myself; presumably you'd need a way to send snippets of info back to the client to give it an idea of how much of the file is left to upload. But I don't know much about it, sorry.
Yeah, the problem with this is that, if it is a large file, and by large I mean even a file of 50 - 75 mb, if there is no indication as to what is going on, the user most often gets confused and tries to submit again or simply gives up thinking the connection was lost. That is why some sort of indication as to the progress of the upload is extremely helpful.
Quote:Ever thought of using Perl for this function to get around the file size restrictions of PHP?
Not really. The PHP restrictions are all configurable, but of course it all depends on your hosting environment as to how large a file may be uploaded. I think I'll keep FT just with PHP though, and not move into Perl or other languages.
Well the real problem here is memory usage. I you are trying to upload very large files, in the range of say 250 -600 mb, You need to set the php.ini to a much higher amount than normal, and as well, the amount of memory which will be allowed to be used. Unless you own your own servers like I do, this most likely will not happen. Perl is much better at handling file uploads ( up to 2 Gb) and memory usage. That being said, I guess that this part is not really your main focus with formtools. It would really add significant functionality though ;-)
Dave
All the best -
Ben
|