From bob at patin.com Fri Nov 7 08:21:01 2014 From: bob at patin.com (Bob Patin) Date: Fri Nov 7 08:17:48 2014 Subject: [FX.php List] Simple JQuery question (I hope) Message-ID: <9BC068EA-AFF4-4748-B7A8-36F52E7763A9@patin.com> I have a POST form; when a user clicks the SUBMIT button, I want to replace the SUBMIT button with a spinning gear, so that users don?t click the button twice. I?ve written this: $('#submit').click(function(){ $('.submitter').html('
'); }); which works, but the form doesn?t submit; this seems to intercept the POST. I tried adding this $.post(?card.php?) I have a POST form; when a user clicks the SUBMIT button, I want to replace the SUBMIT button with a spinning gear, so that users don?t click the button twice. I?ve written this: $('#submit').click(function(){ $('.submitter').html('
'); }); which works, but the form doesn?t submit; this seems to intercept the POST. I tried adding this $.post(?card.php?) 615-333-6858 FileMaker 9, 10, 11, 12 & 13 Certified Developer http://www.longtermsolutions.com - iChat: bobpatin@me.com Twitter: bobpatin ? FileMaker Consulting FileMaker Hosting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20141107/f53756de/attachment.html From bob at patin.com Fri Nov 7 08:21:01 2014 From: bob at patin.com (Bob Patin) Date: Fri Nov 7 08:17:51 2014 Subject: [FX.php List] Simple JQuery question (I hope) Message-ID: <118B01C0-6859-4335-960B-65FD6A4EFF90@patin.com> I have a POST form; when a user clicks the SUBMIT button, I want to replace the SUBMIT button with a spinning gear, so that users don?t click the button twice. I?ve written this: $('#submit').click(function(){ $('.submitter').html('
'); }); which works, but the form doesn?t submit; this seems to intercept the POST. I tried adding this $.post(?card.php?) 615-333-6858 FileMaker 9, 10, 11, 12 & 13 Certified Developer http://www.longtermsolutions.com - iChat: bobpatin@me.com Twitter: bobpatin ? FileMaker Consulting FileMaker Hosting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20141107/6af4a8be/attachment.html From ted-fitzgerald at uiowa.edu Fri Nov 7 08:25:33 2014 From: ted-fitzgerald at uiowa.edu (Fitzgerald, Theodore C) Date: Fri Nov 7 08:22:05 2014 Subject: [FX.php List] Simple JQuery question (I hope) In-Reply-To: <0A06699A-9790-46E1-A0BD-8EFE0D126A8B@patin.com> References: <0A06699A-9790-46E1-A0BD-8EFE0D126A8B@patin.com> Message-ID: Bob, You can add $('#submit').submit() like so: $('#submit').click(function(){ $('.submitter').html('
'); $('#submit').submit(); }); Ted Application Developer ITS-Enterprise Services 2800 UCC University of Iowa From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Bob Patin Sent: Friday, November 07, 2014 9:21 AM To: FX.php Discussion List Subject: [FX.php List] Simple JQuery question (I hope) I have a POST form; when a user clicks the SUBMIT button, I want to replace the SUBMIT button with a spinning gear, so that users don?t click the button twice. I?ve written this: $('#submit').click(function(){ $('.submitter').html('
'); }); which works, but the form doesn?t submit; this seems to intercept the POST. I tried adding this $.post(?card.php?) 615-333-6858 FileMaker 9, 10, 11, 12 & 13 Certified Developer http://www.longtermsolutions.com - iChat: bobpatin@me.com Twitter: bobpatin ? FileMaker Consulting FileMaker Hosting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20141107/4dafc7cf/attachment-0001.html From ted-fitzgerald at uiowa.edu Fri Nov 7 08:26:41 2014 From: ted-fitzgerald at uiowa.edu (Fitzgerald, Theodore C) Date: Fri Nov 7 08:23:12 2014 Subject: [FX.php List] Simple JQuery question (I hope) In-Reply-To: References: <0A06699A-9790-46E1-A0BD-8EFE0D126A8B@patin.com> Message-ID: Oops, sorry, it should be $('?).submit(); (not #submit, I?m guessing that is your button). Ted Application Developer ITS-Enterprise Services 2800 UCC University of Iowa From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Fitzgerald, Theodore C Sent: Friday, November 07, 2014 9:26 AM To: FX.php Discussion List Subject: RE: [FX.php List] Simple JQuery question (I hope) Bob, You can add $('#submit').submit() like so: $('#submit').click(function(){ $('.submitter').html('
'); $('#submit').submit(); }); Ted Application Developer ITS-Enterprise Services 2800 UCC University of Iowa From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Bob Patin Sent: Friday, November 07, 2014 9:21 AM To: FX.php Discussion List Subject: [FX.php List] Simple JQuery question (I hope) I have a POST form; when a user clicks the SUBMIT button, I want to replace the SUBMIT button with a spinning gear, so that users don?t click the button twice. I?ve written this: $('#submit').click(function(){ $('.submitter').html('
'); }); which works, but the form doesn?t submit; this seems to intercept the POST. I tried adding this $.post(?card.php?) 615-333-6858 FileMaker 9, 10, 11, 12 & 13 Certified Developer http://www.longtermsolutions.com - iChat: bobpatin@me.com Twitter: bobpatin ? FileMaker Consulting FileMaker Hosting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20141107/79d06008/attachment.html From bob at patin.com Fri Nov 7 08:29:50 2014 From: bob at patin.com (Bob Patin) Date: Fri Nov 7 08:26:36 2014 Subject: [FX.php List] Simple JQuery question (I hope) In-Reply-To: References: <0A06699A-9790-46E1-A0BD-8EFE0D126A8B@patin.com> Message-ID: Thanks, that did the trick when I put the form?s ID in there, as opposed to the button?s ID. :) Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 FileMaker 9, 10, 11, 12 & 13 Certified Developer http://www.longtermsolutions.com - iChat: bobpatin@me.com Twitter: bobpatin ? FileMaker Consulting FileMaker Hosting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > On Nov 7, 2014, at 9:25 AM, Fitzgerald, Theodore C wrote: > > Bob, > > You can add $('#submit').submit() like so: > > $('#submit').click(function(){ > $('.submitter').html('
'); > $('#submit').submit(); > }); > > Ted > > Application Developer > ITS-Enterprise Services > 2800 UCC > University of Iowa > > From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Bob Patin > Sent: Friday, November 07, 2014 9:21 AM > To: FX.php Discussion List > Subject: [FX.php List] Simple JQuery question (I hope) > > I have a POST form; when a user clicks the SUBMIT button, I want to replace the SUBMIT button with a spinning gear, so that users don?t click the button twice. > > I?ve written this: > > $('#submit').click(function(){ > $('.submitter').html('
'); > }); > > > which works, but the form doesn?t submit; this seems to intercept the POST. > > I tried adding this > > $.post(?card.php?) > but it doesn?t make any difference. > > Here is my question: how can I put the image into the DIV (which I?m doing above) and at the same time let the POST occur? > > Thanks, > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > FileMaker 9, 10, 11, 12 & 13 Certified Developer > http://www.longtermsolutions.com > - > iChat: bobpatin@me.com > Twitter: bobpatin > ? > FileMaker Consulting > FileMaker Hosting for all versions of FileMaker > PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20141107/0cb2c711/attachment-0001.html From steve at bluecrocodile.co.nz Fri Nov 7 08:48:19 2014 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Fri Nov 7 08:44:52 2014 Subject: [FX.php List] Simple JQuery question (I hope) In-Reply-To: <118B01C0-6859-4335-960B-65FD6A4EFF90@patin.com> References: <118B01C0-6859-4335-960B-65FD6A4EFF90@patin.com> Message-ID: Hi Bob I?m surprised that it?s preventing the post, but you could try adding a return true; to the end of that function, which would tell the browser that the default action (the post) should happen. Does the form post as expected if you don?t add this handler?? Cheers Steve > I have a POST form; when a user clicks the SUBMIT button, I want to replace the SUBMIT button with a spinning gear, so that users don?t click the button twice. > > I?ve written this: > > $('#submit').click(function(){ > $('.submitter').html('
'); > }); > > > which works, but the form doesn?t submit; this seems to intercept the POST. > > I tried adding this > > $.post(?card.php?) > but it doesn?t make any difference. > > Here is my question: how can I put the image into the DIV (which I?m doing above) and at the same time let the POST occur? > > Thanks, > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > FileMaker 9, 10, 11, 12 & 13 Certified Developer > http://www.longtermsolutions.com > - > iChat: bobpatin@me.com > Twitter: bobpatin > ? > FileMaker Consulting > FileMaker Hosting for all versions of FileMaker > PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list Steve Winter +44 777 852 4776 steve@bluecrocodile.co.nz -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20141107/4c8a3182/attachment.html From bob at patin.com Fri Nov 7 08:50:48 2014 From: bob at patin.com (Bob Patin) Date: Fri Nov 7 08:47:36 2014 Subject: [FX.php List] Simple JQuery question (I hope) In-Reply-To: References: <118B01C0-6859-4335-960B-65FD6A4EFF90@patin.com> Message-ID: <365406E8-475E-41E9-883C-33AD5DC40E45@patin.com> Hi, I tried using ?return true? but it didn?t make any difference; when I added this though $(?#cardform?).submit(); it worked, but it happens so fast that I never see the gear?which is good though, since the main thing I wanted to prevent here was double-clicking on the SUBMIT button, which we suspect was going on. All is well! Bob Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 FileMaker 9, 10, 11, 12 & 13 Certified Developer http://www.longtermsolutions.com - iChat: bobpatin@me.com Twitter: bobpatin ? FileMaker Consulting FileMaker Hosting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting > On Nov 7, 2014, at 9:48 AM, Steve Winter wrote: > > Hi Bob > > I?m surprised that it?s preventing the post, but you could try adding a > return true; > to the end of that function, which would tell the browser that the default action (the post) should happen. > > Does the form post as expected if you don?t add this handler?? > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20141107/ee58a983/attachment.html From mail at jsfmp.com Mon Nov 17 17:56:49 2014 From: mail at jsfmp.com (Joel Shapiro) Date: Mon Nov 17 17:52:42 2014 Subject: [FX.php List] [OFF] Windows Temp permissions for uploading Message-ID: Hi all I've got a situation. I'm uploading files via PHP to a Windows Server 2008 (IIS7). The file is successfully uploading to C:\Windows\Temp and then successfully moving to an "uploads/" directory inside the site. However, there's some kind of permissions problem on the file inside /uploads/. If I point my browser to the uploaded file ("xyz.com/uploads/myFile.docx"), I get a "401 - Unauthorized: Access is denied due to invalid credentials." error. If I manually move the same myFile.docx into the /uploads/ folder (via my Mac's Finder, not uploaded via PHP), then pointing to the file's URL (as above) successfully downloads the file. This post: http://www.howyoudo.info/index.php/how-to-fix-windows-server-upload-file-inherit-permissions-error/ *seems* like it should address this issue: "... The problem is when Windows copies that file, it keeps the temporary directory?s permissions and doesn?t inherit your web directory?s permissions." But setting most of the existing Windows accounts/objects in Windows\Temp to Full Control doesn't fix the problem. FWIW: This works fine on my Mac dev server. Does anybody have any thoughts/suggestions? Is there a specific account/object in C:\Windows\Temp that should be set a specific way? TIA, -Joel From beverlyvoth at gmail.com Mon Nov 17 19:03:13 2014 From: beverlyvoth at gmail.com (BEVERLY VOTH) Date: Mon Nov 17 18:59:03 2014 Subject: [FX.php List] [OFF] Windows Temp permissions for uploading In-Reply-To: References: Message-ID: <1E7E535B-2A2B-408D-8B85-50195FA797B0@gmail.com> I haven't read the entire article. Does chmod() help? (I got there from here: ) Beverly On Nov 17, 2014, at 7:56 PM, Joel Shapiro wrote: > Hi all > > I've got a situation. I'm uploading files via PHP to a Windows Server 2008 (IIS7). The file is successfully uploading to C:\Windows\Temp and then successfully moving to an "uploads/" directory inside the site. However, there's some kind of permissions problem on the file inside /uploads/. > > If I point my browser to the uploaded file ("xyz.com/uploads/myFile.docx"), I get a "401 - Unauthorized: Access is denied due to invalid credentials." error. > > If I manually move the same myFile.docx into the /uploads/ folder (via my Mac's Finder, not uploaded via PHP), then pointing to the file's URL (as above) successfully downloads the file. > > This post: > http://www.howyoudo.info/index.php/how-to-fix-windows-server-upload-file-inherit-permissions-error/ > *seems* like it should address this issue: "... The problem is when Windows copies that file, it keeps the temporary directory?s permissions and doesn?t inherit your web directory?s permissions." But setting most of the existing Windows accounts/objects in Windows\Temp to Full Control doesn't fix the problem. > > FWIW: This works fine on my Mac dev server. > > Does anybody have any thoughts/suggestions? Is there a specific account/object in C:\Windows\Temp that should be set a specific way? > > TIA, > -Joel > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From mail at jsfmp.com Mon Nov 17 20:07:23 2014 From: mail at jsfmp.com (Joel Shapiro) Date: Mon Nov 17 20:03:15 2014 Subject: [FX.php List] [OFF] Windows Temp permissions for uploading In-Reply-To: <1E7E535B-2A2B-408D-8B85-50195FA797B0@gmail.com> References: <1E7E535B-2A2B-408D-8B85-50195FA797B0@gmail.com> Message-ID: <21E65FB2-A10C-45AE-8520-1185C08D7F7E@jsfmp.com> Hi Beverly Thanks for the reply! chmod(), I have learned, is a Unix (& Linux) function and does not work on Windows. Further down the page I'd linked to was a comment that using copy() instead of move_uploaded_file() will use the target directory's permissions, and this has worked for my situation. A potential risk is that copy() will overwrite same-named files while move_uploaded_file() won't. That probably won't be an issue for me since I'm deleting the file (via unlink() ) after I InsertFromURL it into an FM container field. And/or maybe I can temporarily modify the file name &/or additional folder with something unique to remove any possibility of unwanted overwriting. (And I'll probably still play around with permissions anyway to see if I can make it work as it's "supposed to") Thanks, -Joel On Nov 17, 2014, at 6:03 PM, BEVERLY VOTH wrote: > I haven't read the entire article. Does chmod() help? > > > (I got there from here: ) > > Beverly > > On Nov 17, 2014, at 7:56 PM, Joel Shapiro wrote: > >> Hi all >> >> I've got a situation. I'm uploading files via PHP to a Windows Server 2008 (IIS7). The file is successfully uploading to C:\Windows\Temp and then successfully moving to an "uploads/" directory inside the site. However, there's some kind of permissions problem on the file inside /uploads/. >> >> If I point my browser to the uploaded file ("xyz.com/uploads/myFile.docx"), I get a "401 - Unauthorized: Access is denied due to invalid credentials." error. >> >> If I manually move the same myFile.docx into the /uploads/ folder (via my Mac's Finder, not uploaded via PHP), then pointing to the file's URL (as above) successfully downloads the file. >> >> This post: >> http://www.howyoudo.info/index.php/how-to-fix-windows-server-upload-file-inherit-permissions-error/ >> *seems* like it should address this issue: "... The problem is when Windows copies that file, it keeps the temporary directory?s permissions and doesn?t inherit your web directory?s permissions." But setting most of the existing Windows accounts/objects in Windows\Temp to Full Control doesn't fix the problem. >> >> FWIW: This works fine on my Mac dev server. >> >> Does anybody have any thoughts/suggestions? Is there a specific account/object in C:\Windows\Temp that should be set a specific way? >> >> TIA, >> -Joel >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From tim.webko at gmail.com Mon Nov 17 20:13:20 2014 From: tim.webko at gmail.com (Tim 'Webko' Booth) Date: Mon Nov 17 20:09:09 2014 Subject: [FX.php List] [OFF] Windows Temp permissions for uploading In-Reply-To: <21E65FB2-A10C-45AE-8520-1185C08D7F7E@jsfmp.com> References: <1E7E535B-2A2B-408D-8B85-50195FA797B0@gmail.com> <21E65FB2-A10C-45AE-8520-1185C08D7F7E@jsfmp.com> Message-ID: Dear Joel, Ive found if you have an FTP server (FileZilla for example) running with access to the web directories under IIS, you can chmod using that... It interprets that to whatever Windows needs Cheers Webko On 18 November 2014 14:07, Joel Shapiro wrote: > Hi Beverly > > Thanks for the reply! > > chmod(), I have learned, is a Unix (& Linux) function and does not work on > Windows. > > Further down the page I'd linked to was a comment that using copy() > instead of move_uploaded_file() will use the target directory's > permissions, and this has worked for my situation. A potential risk is > that copy() will overwrite same-named files while move_uploaded_file() > won't. That probably won't be an issue for me since I'm deleting the file > (via unlink() ) after I InsertFromURL it into an FM container field. > And/or maybe I can temporarily modify the file name &/or additional folder > with something unique to remove any possibility of unwanted overwriting. > > (And I'll probably still play around with permissions anyway to see if I > can make it work as it's "supposed to") > > Thanks, > -Joel > > > On Nov 17, 2014, at 6:03 PM, BEVERLY VOTH wrote: > > > I haven't read the entire article. Does chmod() help? > > > > > > (I got there from here: < > http://php.net/manual/en/features.file-upload.php>) > > > > Beverly > > > > On Nov 17, 2014, at 7:56 PM, Joel Shapiro wrote: > > > >> Hi all > >> > >> I've got a situation. I'm uploading files via PHP to a Windows Server > 2008 (IIS7). The file is successfully uploading to C:\Windows\Temp and > then successfully moving to an "uploads/" directory inside the site. > However, there's some kind of permissions problem on the file inside > /uploads/. > >> > >> If I point my browser to the uploaded file (" > xyz.com/uploads/myFile.docx"), I get a "401 - Unauthorized: Access is > denied due to invalid credentials." error. > >> > >> If I manually move the same myFile.docx into the /uploads/ folder (via > my Mac's Finder, not uploaded via PHP), then pointing to the file's URL (as > above) successfully downloads the file. > >> > >> This post: > >> > http://www.howyoudo.info/index.php/how-to-fix-windows-server-upload-file-inherit-permissions-error/ > >> *seems* like it should address this issue: "... The problem is when > Windows copies that file, it keeps the temporary directory?s permissions > and doesn?t inherit your web directory?s permissions." But setting most of > the existing Windows accounts/objects in Windows\Temp to Full Control > doesn't fix the problem. > >> > >> FWIW: This works fine on my Mac dev server. > >> > >> Does anybody have any thoughts/suggestions? Is there a specific > account/object in C:\Windows\Temp that should be set a specific way? > >> > >> TIA, > >> -Joel > >> > >> _______________________________________________ > >> FX.php_List mailing list > >> FX.php_List@mail.iviking.org > >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > > _______________________________________________ > > FX.php_List mailing list > > FX.php_List@mail.iviking.org > > http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20141118/d25e4b7c/attachment-0001.html From mail at jsfmp.com Mon Nov 17 20:20:46 2014 From: mail at jsfmp.com (Joel Shapiro) Date: Mon Nov 17 20:16:37 2014 Subject: [FX.php List] [OFF] Windows Temp permissions for uploading In-Reply-To: <21E65FB2-A10C-45AE-8520-1185C08D7F7E@jsfmp.com> References: <1E7E535B-2A2B-408D-8B85-50195FA797B0@gmail.com> <21E65FB2-A10C-45AE-8520-1185C08D7F7E@jsfmp.com> Message-ID: <75C2DA34-43B3-471C-9861-AC153BB2D71F@jsfmp.com> I take back this comment about overwriting. I'd gotten that from http://php.net/manual/en/function.copy.php but it is not correct (in my current environment) file.docx uploaded a second time becomes file-1.docx -Joel On Nov 17, 2014, at 7:07 PM, Joel Shapiro wrote: > A potential risk is that copy() will overwrite same-named files while move_uploaded_file() won't. From mail at jsfmp.com Mon Nov 17 20:27:40 2014 From: mail at jsfmp.com (Joel Shapiro) Date: Mon Nov 17 20:23:32 2014 Subject: [FX.php List] [OFF] Windows Temp permissions for uploading In-Reply-To: References: <1E7E535B-2A2B-408D-8B85-50195FA797B0@gmail.com> <21E65FB2-A10C-45AE-8520-1185C08D7F7E@jsfmp.com> Message-ID: Interesting. Thanks Tim! I'll see if I can give that a try. Cheers, -Joel On Nov 17, 2014, at 7:13 PM, Tim 'Webko' Booth wrote: > Dear Joel, > > Ive found if you have an FTP server (FileZilla for example) running with access to the web directories under IIS, you can chmod using that... It interprets that to whatever Windows needs > > Cheers > > Webko > > On 18 November 2014 14:07, Joel Shapiro wrote: > Hi Beverly > > Thanks for the reply! > > chmod(), I have learned, is a Unix (& Linux) function and does not work on Windows. > > Further down the page I'd linked to was a comment that using copy() instead of move_uploaded_file() will use the target directory's permissions, and this has worked for my situation. A potential risk is that copy() will overwrite same-named files while move_uploaded_file() won't. That probably won't be an issue for me since I'm deleting the file (via unlink() ) after I InsertFromURL it into an FM container field. And/or maybe I can temporarily modify the file name &/or additional folder with something unique to remove any possibility of unwanted overwriting. > > (And I'll probably still play around with permissions anyway to see if I can make it work as it's "supposed to") > > Thanks, > -Joel > > > On Nov 17, 2014, at 6:03 PM, BEVERLY VOTH wrote: > > > I haven't read the entire article. Does chmod() help? > > > > > > (I got there from here: ) > > > > Beverly > > > > On Nov 17, 2014, at 7:56 PM, Joel Shapiro wrote: > > > >> Hi all > >> > >> I've got a situation. I'm uploading files via PHP to a Windows Server 2008 (IIS7). The file is successfully uploading to C:\Windows\Temp and then successfully moving to an "uploads/" directory inside the site. However, there's some kind of permissions problem on the file inside /uploads/. > >> > >> If I point my browser to the uploaded file ("xyz.com/uploads/myFile.docx"), I get a "401 - Unauthorized: Access is denied due to invalid credentials." error. > >> > >> If I manually move the same myFile.docx into the /uploads/ folder (via my Mac's Finder, not uploaded via PHP), then pointing to the file's URL (as above) successfully downloads the file. > >> > >> This post: > >> http://www.howyoudo.info/index.php/how-to-fix-windows-server-upload-file-inherit-permissions-error/ > >> *seems* like it should address this issue: "... The problem is when Windows copies that file, it keeps the temporary directory?s permissions and doesn?t inherit your web directory?s permissions." But setting most of the existing Windows accounts/objects in Windows\Temp to Full Control doesn't fix the problem. > >> > >> FWIW: This works fine on my Mac dev server. > >> > >> Does anybody have any thoughts/suggestions? Is there a specific account/object in C:\Windows\Temp that should be set a specific way? > >> > >> TIA, > >> -Joel > >> > >> _______________________________________________ > >> FX.php_List mailing list > >> FX.php_List@mail.iviking.org > >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > > _______________________________________________ > > FX.php_List mailing list > > FX.php_List@mail.iviking.org > > http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From mail at jsfmp.com Tue Nov 18 16:46:52 2014 From: mail at jsfmp.com (Joel Shapiro) Date: Tue Nov 18 16:42:40 2014 Subject: [FX.php List] [OFF] Windows Temp permissions for uploading In-Reply-To: References: Message-ID: <514CF414-61D2-4B82-8F48-435E377A93A5@jsfmp.com> Hi again Just reporting that manually adding the IUSR account to the Temp directory and giving it Modify access fixed the problem for me. Thanks again, -Joel On Nov 17, 2014, at 4:56 PM, Joel Shapiro wrote: > Hi all > > I've got a situation. I'm uploading files via PHP to a Windows Server 2008 (IIS7). The file is successfully uploading to C:\Windows\Temp and then successfully moving to an "uploads/" directory inside the site. However, there's some kind of permissions problem on the file inside /uploads/. > > If I point my browser to the uploaded file ("xyz.com/uploads/myFile.docx"), I get a "401 - Unauthorized: Access is denied due to invalid credentials." error. > > If I manually move the same myFile.docx into the /uploads/ folder (via my Mac's Finder, not uploaded via PHP), then pointing to the file's URL (as above) successfully downloads the file. > > This post: > http://www.howyoudo.info/index.php/how-to-fix-windows-server-upload-file-inherit-permissions-error/ > *seems* like it should address this issue: "... The problem is when Windows copies that file, it keeps the temporary directory?s permissions and doesn?t inherit your web directory?s permissions." But setting most of the existing Windows accounts/objects in Windows\Temp to Full Control doesn't fix the problem. > > FWIW: This works fine on my Mac dev server. > > Does anybody have any thoughts/suggestions? Is there a specific account/object in C:\Windows\Temp that should be set a specific way? > > TIA, > -Joel > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list