The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
|
Question regarding file uploads and also Captcha - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: Installation (https://forums.formtools.org/forumdisplay.php?fid=4) +--- Thread: Question regarding file uploads and also Captcha (/showthread.php?tid=426) |
Question regarding file uploads and also Captcha - filch - Jan 4th, 2010 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 RE: Question regarding file uploads and also Captcha - Ben - Jan 16th, 2010 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 RE: Question regarding file uploads and also Captcha - filch - Jan 17th, 2010 Hi Ben, (Jan 16th, 2010, 11:04 AM)Ben Wrote: Hey Dave, 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? 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? 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 RE: Question regarding file uploads and also Captcha - Ben - Jan 18th, 2010 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 RE: Question regarding file uploads and also Captcha - filch - Mar 21st, 2010 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, RE: Question regarding file uploads and also Captcha - Ben - Mar 22nd, 2010 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 RE: Question regarding file uploads and also Captcha - filch - Mar 22nd, 2010 (Mar 22nd, 2010, 7:22 PM)Ben Wrote:Quote:any way to implement a progress bar into the file upload function? |