<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="0.91">
    <channel>
        <title>File upload as part of form?</title>
        <description>The 10 most recently added comments in the topic &quot;File upload as part of form?&quot;</description>
        <link>http://freewaytalk.net/</link>
        <lastBuildDate>Mon, 06 Feb 2012 15:41:00 -500</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>Re: File upload as part of form?</title>
            <link>http://freewaytalk.net/thread/view/4554#m_86964</link>
            <description>&lt;p&gt;Each host is different. A little background: on a server, each application (called a process in the server lingo) runs as a particular Unix user. That user belongs to one or more groups. Each user has permission to do certain things, and each group also has permission to do certain things. These permissions are set at the file level (and folders are just a certain kind of file, so they apply there as well).&lt;/p&gt;

&lt;p&gt;On some of my servers, the Web server process runs as the same user as me, so if I log in as waltd, the Web server also runs as waltd, and that makes these sorts of things easy &amp;#8212; anything the server saves, it saves as if it was me, so I have no trouble deleting that file later, or renaming it, or whatever.&lt;/p&gt;

&lt;p&gt;On other servers, the Web server process runs as its own user, often called www or _www or similar. This user is deliberately restricted from doing much of anything, for security reasons. If www saves a file somewhere, then waltd cannot delete it or move it or do anything to it, not without logging in through the command-line shell and using sudo or su root to become godlike and do whatever I want.&lt;/p&gt;

&lt;p&gt;On these servers, I often do a one-time thing. I either add my user to the www group, or I change the folder&amp;#8217;s group to staff or whatever my user belongs to. Then I give the folder group write permissions (775).&lt;/p&gt;

&lt;p&gt;I would say based on your results here, that your server may be running as you. Try deleting one of the uploaded files through FTP, just to be sure. If it is, then you can run that folder at 755, which is more secure than 775, particularly if your host doesn&amp;#8217;t put each user in their own group.&lt;/p&gt;

&lt;p&gt;Walter&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;freewaytalk mailing list
email@hidden
Update your subscriptions at:
&lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
</description>
            <author>waltd</author>
            <pubDate>Wed, 09 Mar 2011 22:21:26 -500</pubDate>
        </item>
        <item>
            <title>Re: File upload as part of form?</title>
            <link>http://freewaytalk.net/thread/view/4554#m_86958</link>
            <description>&lt;p&gt;Hi Walt,&lt;/p&gt;

&lt;p&gt;It took me a little bit but I finally got the file uploading correctly. I had to get my hosting provider to configure my php.ini correctly.&lt;/p&gt;

&lt;p&gt;I&amp;#8217;ve tested uploading the file into a folder with 755, 775, and 777 permissions. The files uploaded with all three permissions. Is there any reason why not to use 755 permissions if it is working?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;/p&gt;

&lt;p&gt;TeamSDA_Christian&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;freewaytalk mailing list
email@hidden
Update your subscriptions at:
&lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
</description>
            <author>TeamSDA</author>
            <pubDate>Wed, 09 Mar 2011 21:59:32 -500</pubDate>
        </item>
        <item>
            <title>Re: File upload as part of form?</title>
            <link>http://freewaytalk.net/thread/view/4554#m_86881</link>
            <description>&lt;p&gt;Two years or so ago after posting here the same questions and getting the same cautious answers I decided to take the risk and implement file uploads for our printing company. My competitors and vendors have this essential feature so I wasn&amp;#8217;t going to be left out. For what it&amp;#8217;s worth here is what we did:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Inquired to my hosting company if public file uploads were allowed. Answer - Yes. If memory serves me correctly this directory is isolated in some form so if there&amp;#8217;s a problem it gets isolated. They helped me set things up using the setup feature in my control panel. Simple.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Searched for a simple and easy script to meet my needs. Settled on Attachment Mailer Plus from &lt;a href=&quot;http://www.perlscriptsjavascripts.com&quot;&gt;http://www.perlscriptsjavascripts.com&lt;/a&gt;.
Setup was really easy and requires just inserting a bit of code into a Freeway page. We set the file types that can be uploaded. The look and feel is customizable and fits in our web design scheme. Support, when necessary, from the authors has been excellent.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Over two years and no serious problems as yet and we&amp;#8217;ve had hundreds if not thousands of uploads. Yes, we&amp;#8217;ve had malicious activity. Once in a while a crazy will upload a php file disguised as a jpg or something. It&amp;#8217;s easy to spot in the file listings and we delete them. If we accidentally delete a customers file - oh well. Better safe than sorry. It&amp;#8217;s pretty easy to tell when something isn&amp;#8217;t right.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Could something bad happen? Possibly, but we feel the need to have the upload feature overrides the risk.&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;freewaytalk mailing list
email@hidden
Update your subscriptions at:
&lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
</description>
            <author>cosjr</author>
            <pubDate>Tue, 08 Mar 2011 12:35:43 -500</pubDate>
        </item>
        <item>
            <title>Re: File upload as part of form?</title>
            <link>http://freewaytalk.net/thread/view/4554#m_86877</link>
            <description>&lt;p&gt;You have your enctype set correctly. The issue is now moved on to the
folder where you are trying to save the files. Make sure that your Web
server has privileges to save files into that folder. You may need to
make it world-writable (777 in Transmit or Fetch) as a first step in
debugging this.&lt;/p&gt;

&lt;p&gt;Once you get the form handler to save the files in the correct folder,
next you need to ask your server admin to change the ownership of that
folder so that the Web server can create files in there, and your user
can read and delete them. It will mean 775 permissions, with the Web
server as the owner, but with group write permissions set to one of
your user&amp;#8217;s groups.&lt;/p&gt;

&lt;p&gt;Walter&lt;/p&gt;

&lt;p&gt;On Mar 7, 2011, at 9:53 PM, TeamSDA wrote:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;(Error moving file /tmp/phpeMpR13 to ../../../../Uploads/ 
  Screenshot.png)&lt;/p&gt;
  
  &lt;p&gt;What is Forms To Go asking for with the form tag attribute? What and
  where an I supposed to enter this information?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;hr /&gt;

&lt;p&gt;freewaytalk mailing list
email@hidden
Update your subscriptions at:
&lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
</description>
            <author>waltd</author>
            <pubDate>Tue, 08 Mar 2011 04:06:39 -500</pubDate>
        </item>
        <item>
            <title>Re: File upload as part of form?</title>
            <link>http://freewaytalk.net/thread/view/4554#m_86876</link>
            <description>&lt;p&gt;Hi Everyone,&lt;/p&gt;

&lt;p&gt;Thank you all for your great input. We got the Form To Go form setup with the Make File Upload Field Action. When trying to create the PHP script in Forms To Go it gave us this error:&lt;/p&gt;

&lt;p&gt;(Warning: The HTML &amp;lt;form&amp;gt; tag does not contain the        enctype=&amp;#8221;multipart/form-data&amp;#8221; attribute, which is required to upload files from a HTML form.)&lt;/p&gt;

&lt;p&gt;I when to the Form Setup (Extended &amp;lt;form&amp;gt;) and entered Enctype in the name and multipart/form-data in the value. Forms to go no longer gave me the error. When I went to test the form I got this error:&lt;/p&gt;

&lt;p&gt;(Error moving file /tmp/phpeMpR13 to ../../../../Uploads/Screenshot.png)&lt;/p&gt;

&lt;p&gt;What is Forms To Go asking for with the form tag attribute? What and where an I supposed to enter this information?&lt;/p&gt;

&lt;p&gt;Thank you for your help,&lt;/p&gt;

&lt;p&gt;TeamSDA_Christian&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;freewaytalk mailing list
email@hidden
Update your subscriptions at:
&lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
</description>
            <author>TeamSDA</author>
            <pubDate>Tue, 08 Mar 2011 02:53:39 -500</pubDate>
        </item>
        <item>
            <title>Re: File upload as part of form?</title>
            <link>http://freewaytalk.net/thread/view/4554#m_86670</link>
            <description>&lt;p&gt;First and foremost you want to prevent viruses from getting onto the web server. Local AV software isn&amp;#8217;t going to prevent virus laden file uploads from an outsider using your upload form through a web browser, unless you are running your own local server of course. If you follow Walt&amp;#8217;s separate folder suggestion you could periodically check the contents of that folder to make sure there is nothing waiting to wreak havoc.&lt;/p&gt;

&lt;p&gt;I like Intego&amp;#8217;s Virus Barrier. Current version 6 is much better than it used to be, and I use it myself. Frankly, there has only been one instance of a potential virus detected, and that was only due to excessive network requests from iDisk access. Viruses on the Mac at the moment are almost a non-issue even without AV software. But if you share files with a Windows user&amp;#8230;.&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;freewaytalk mailing list
email@hidden
Update your subscriptions at:
&lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
</description>
            <author>chuckamuck</author>
            <pubDate>Fri, 04 Mar 2011 23:00:28 -500</pubDate>
        </item>
        <item>
            <title>Re: File upload as part of form?</title>
            <link>http://freewaytalk.net/thread/view/4554#m_86669</link>
            <description>&lt;p&gt;My inner geek beckons:&lt;/p&gt;

&lt;p&gt;Purely out of curiosity and hypothetically, what about building an app
(Ruby or PHP) that would allow you to log in and view/administer the
uploaded files and specifically select the file(s) to be scanned
either on the server and if safe automatically downloaded and saved.
If that&amp;#8217;s not possible then have them downloaded (via the app) and
through the use of AppleScript launch the scanning software of choice
and then save them? I was thinking it would be a fun project to try an
automate as much as possible. Could be very tedious if your dealing
with dozens or hundreds of uploaded files/ week.&lt;/p&gt;

&lt;p&gt;Just kickin&amp;#8217; it around.&lt;/p&gt;

&lt;p&gt;Todd&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;freewaytalk mailing list
email@hidden
Update your subscriptions at:
&lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
</description>
            <author>Todd</author>
            <pubDate>Fri, 04 Mar 2011 22:54:02 -500</pubDate>
        </item>
        <item>
            <title>Re: File upload as part of form?</title>
            <link>http://freewaytalk.net/thread/view/4554#m_86668</link>
            <description>&lt;p&gt;So in your opinion, Mac AV software might not do as good of a job exposing PC viruses?&lt;/p&gt;

&lt;p&gt;Would we be better to use PC AV software running on one of our virtual machines (Parallels)?&lt;/p&gt;

&lt;p&gt;TeamSDA_DAve&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;freewaytalk mailing list
email@hidden
Update your subscriptions at:
&lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
</description>
            <author>TeamSDA</author>
            <pubDate>Fri, 04 Mar 2011 22:41:47 -500</pubDate>
        </item>
        <item>
            <title>Re: File upload as part of form?</title>
            <link>http://freewaytalk.net/thread/view/4554#m_86667</link>
            <description>&lt;p&gt;I would buy a good commercial anti-virus application, and keep it
updated. On the PC, I very much like the free and open source ClamAV,
which you can download from SourceForge. It constantly updates the
virus definitions for you, the only pain of this is that you need to
log in as an administrator to run the update.&lt;/p&gt;

&lt;p&gt;On the Mac, the Sophos product is very highly regarded, although I
haven&amp;#8217;t used a Mac A/V application since the 90&amp;#8217;s. Windows virii can&amp;#8217;t
hurt a Mac, but you can pass the critters along to your clients
unwittingly.&lt;/p&gt;

&lt;p&gt;Walter&lt;/p&gt;

&lt;p&gt;On Mar 4, 2011, at 5:18 PM, TeamSDA wrote:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Hi Walt,&lt;/p&gt;
  
  &lt;p&gt;Makes perfect sense. Is there a way to screen or wash the files that
  we pull down from this folder to check for malicious code, viruses
  and such Prior to opening on our computer as a non administrative
  user?&lt;/p&gt;
  
  &lt;p&gt;Thank You, TeamSDA_Dave&lt;/p&gt;
  
  &lt;hr /&gt;
  
  &lt;p&gt;freewaytalk mailing list
  email@hidden
  Update your subscriptions at:
  &lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;hr /&gt;

&lt;p&gt;freewaytalk mailing list
email@hidden
Update your subscriptions at:
&lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
</description>
            <author>waltd</author>
            <pubDate>Fri, 04 Mar 2011 22:30:27 -500</pubDate>
        </item>
        <item>
            <title>Re: File upload as part of form?</title>
            <link>http://freewaytalk.net/thread/view/4554#m_86666</link>
            <description>&lt;p&gt;Hi Walt,&lt;/p&gt;

&lt;p&gt;Makes perfect sense. Is there a way to screen or wash the files that we pull down from this folder to check for malicious code, viruses and such Prior to opening on our computer as a non administrative user?&lt;/p&gt;

&lt;p&gt;Thank You, TeamSDA_Dave&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;freewaytalk mailing list
email@hidden
Update your subscriptions at:
&lt;a href=&quot;http://freewaytalk.net/person/options&quot;&gt;http://freewaytalk.net/person/options&lt;/a&gt;&lt;/p&gt;
</description>
            <author>TeamSDA</author>
            <pubDate>Fri, 04 Mar 2011 22:18:06 -500</pubDate>
        </item>
        <item>
            <title>File upload as part of form?</title>
            <link>http://freewaytalk.net/thread/view/4554</link>
            <description>&lt;p&gt;In creating a form &amp;#8212; in my situation an employment application form &amp;#8212; is it possible to add a button or something that would allow a person to upload a resume, probably as a Word or PDF document?&lt;/p&gt;

&lt;p&gt;How would that be done? (I don’t see anything in the manual that talks about this capability.)&lt;/p&gt;

&lt;p&gt;Can Tim’s PHP Feedback Form action work with this?&lt;/p&gt;

&lt;p&gt;Thanks.&lt;/p&gt;
</description>
            <author>LauraB</author>
            <pubDate>Mon, 20 Nov 2006 16:59:22 -500</pubDate>
        </item>
    </channel>
</rss>

