2 of 3
2
Freeform Multiple File Upload Problem
Posted: 09 April 2008 06:30 AM   [ Ignore ]   [ # 16 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3257
Joined  2006-10-18

Hmmm… strange…

Which versions of ExpressionEngine and Freeform are you running?

This probably wont be it, but does the member group have sufficient privilages to upload files? smile

 Signature 
Profile
 
 
Posted: 09 April 2008 06:37 AM   [ Ignore ]   [ # 17 ]
Newbie
Rank
Total Posts:  5
Joined  2008-04-02

EE Version : ExpressionEngine Version 1.6.3
FF Version : Freeform 2.6.5

Yes, the Member Group has sufficient privileges to upload.

We have taken a slightly modified approach to user uploads; instead of making the user submit two separate files we decided to make it easier and just have them upload a .zip or .rar file containing multiples. So, I guess you can skip this problem. Thanks anyway for the quick response and feedback.

Profile
 
 
Posted: 09 April 2008 06:56 AM   [ Ignore ]   [ # 18 ]
Newbie
Rank
Total Posts:  11
Joined  2007-12-12

After 20 hours of troubleshooting..... I could not fix it.

I thought I fixed it when I made a new directory like I mentioned above but that was just because I was logged in as Super Admin.... :(

I finally just made a javascript/php file uploader and used some javascript to write the names of the files uploaded into a field in the freeform and then submitted that.

If you have no success I can share some code with you smile

Profile
 
 
Posted: 09 April 2008 07:04 AM   [ Ignore ]   [ # 19 ]
Newbie
Rank
Total Posts:  5
Joined  2008-04-02

Visionpoint -

Thanks for the quick reply. I spent about 5 hours last night alone trying to come up with a solution. Your Javascript solution sounds dead on, if you wouldn’t mind sharing I wouldn’t mind stealing. Up to you.

Profile
 
 
Posted: 09 April 2008 07:07 AM   [ Ignore ]   [ # 20 ]
Newbie
Rank
Total Posts:  11
Joined  2007-12-12

I will zip up a code package and write some documentation for it at lunch today smile

Profile
 
 
Posted: 09 April 2008 07:09 AM   [ Ignore ]   [ # 21 ]
Newbie
Rank
Total Posts:  5
Joined  2008-04-02

Thanks, man. But really you don’t have to do all that. Don’t waste your lunch on this. Like I mentioned before we went with the .zip file solution which, in the long run, may be easier on everyone. Seriously, don’t worry about it. I really appreciate it though.

Profile
 
 
Posted: 09 April 2008 07:19 AM   [ Ignore ]   [ # 22 ]
Newbie
Rank
Total Posts:  11
Joined  2007-12-12

I’ll put it up regardless just in case someone else hits this issue.  and then you can use it if ya want wink

Profile
 
 
Posted: 09 April 2008 07:24 AM   [ Ignore ]   [ # 23 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3257
Joined  2006-10-18

Thanks visionpoint smile

 Signature 
Profile
 
 
Posted: 09 April 2008 03:15 PM   [ Ignore ]   [ # 24 ]
Member
Avatar
RankRankRank
Total Posts:  71
Joined  2006-05-10

Hi visionpoint,

Just to add my voice to the people that would love to see your solution. Looking forward to the ZIP. Will it be posted on these forums or somewhere else?

Thanks and well done wink

Best wishes,

Mark

Profile
 
 
Posted: 10 April 2008 07:10 AM   [ Ignore ]   [ # 25 ]
Newbie
Rank
Total Posts:  11
Joined  2007-12-12

First of all,

Thanks to Max File Uploader, the only easy to implement File Upload solution I could find.
http://www.phpf1.com/product/file-upload-script.html

This is constructed using some of his code, then I added some stuff to make it work with Freeform and I added some admittedly simple file type checking.

I commented all the code enough, I think?  If you have any questions, you can post here.

It really doesnt matter where the files are as long as the paths to eachother are correct.

Here it is for download: (see attachment)

Also, I am a complete n00b at Javascript so feel free to critique.  I am but a lowly Java/XHTML/CSS/PHP guy rasberry

File Attachments
FreeForm-File-Uploader.zip  (File Size: 15KB - Downloads: 132)
Profile
 
 
Posted: 10 April 2008 07:20 AM   [ Ignore ]   [ # 26 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3257
Joined  2006-10-18

visionpoint,

Thank you! smile

I hope you don’t mind, but I’ve attached your link to your post as an attachment. wink

Thanks!

 Signature 
Profile
 
 
Posted: 03 June 2008 09:36 AM   [ Ignore ]   [ # 27 ]
Newbie
Rank
Total Posts:  10
Joined  2006-03-31

Is JavaScript the only solution?

I have the same situation. ExpressionEngine Version 1.6.3, Freeform 2.6.5. Superadmin can upload 3 files, members can upload only 2 files and I only tried uploading small files - 20k each.

Thanks.

Profile
 
 
Posted: 05 June 2008 05:19 AM   [ Ignore ]   [ # 28 ]
Newbie
Rank
Total Posts:  10
Joined  2006-03-31

I have the same situation. ExpressionEngine Version 1.6.3, Freeform 2.6.5. Superadmin can upload 3 files, members can upload only 2 files and I only tried uploading small files - 20k each.

I didn’t give up yet! The error message says:

Allowed memory size of 262144 bytes exhausted (tried to allocate 38593 bytes) in ..../core/core.regex.php on line 563

So I had a look at the server configuration and here is what I have:

PHP Version 5.2.6
memory_limit 64M
upload_max_filesize 10M
post_max_size 8M

I did the same test on a different server, PHP Version 4.3.9, similar configuration, same errors

Not sure what else to check but shouldn’t this be enough to upload 3 small files?

Your help is greatly appreciated. Thanks!

Profile
 
 
Posted: 06 August 2008 01:48 PM   [ Ignore ]   [ # 29 ]
Newbie
Rank
Total Posts:  6
Joined  2007-08-21

Hey all,

We’re having the same problem. Logged in as SuperAdmin, no worries. Images upload and are sent to the notification recipient.

But a member, or non-member fills out the form, which has 3 file uploads, and while all 3 get uploaded, the user never gets to the thank-you page, and the images don’t get emailed.

Has there been any official fix for this?

EE 1.6.3
Freeform 2.6.3

Profile
 
 
Posted: 06 August 2008 05:44 PM   [ Ignore ]   [ # 30 ]
Newbie
Rank
Total Posts:  6
Joined  2007-08-21

Ingmar over on the EE forums had some great insight. He had me turn off XSS Filtering of uploaded files and try the form again, and it worked perfectly.

But of course we don’t want to leave XSS filtering off permanently.

Any ideas of a work around?

Profile
 
 
   
2 of 3
2