Newbie wants to allow e-mail attachments

dmag 10 Feb, 2008
Hi

I've looked at some of the threads here and can't understand them. I don't know code, but I can follow directions if somebody can help.

I've done this:

Under "File Uploads" I put in "click_to_attach_files_1:jpg|doc|zip= all are ok" and selected "yes" for "enable uploads," but it doesn't show up in the form. File size is 10000 maximum and 1 is minimum.

I have pasted code from a previous form that works okay and it shows up. Just nothing about attaching files. I was hoping to see a line that says "attach files (jpg, doc, zip are okay), along with a button to navigate to the file, a blank space to show the file chosen, then another button to attach.

What goes in the "form code" area to make this happen...or am I totally wrong about how to do this?

Is there anything in the "general" area that has to be done, except to list an e-mail address to send the message and files to?

Thanks for any help you can give.<br><br>Post edited by: dmag, at: 2008/02/10 03:19
GreyHead 10 Feb, 2008
Hi dmag,

You'll need to include an input tag in your form like
<input type="file" name="click_to_attach_files_1" />
and add the whatever label or explanation text you want.

Bob<br><br>Post edited by: GreyHead, at: 2008/02/10 08:03
dmag 10 Feb, 2008
Hi Bob,

Thanks. It worked...partially.

At least I can now see the "browse" button and the space for the file to show up when selected.

When the e-mail came through, the file was listed next to the label "click_to_attach_files_1." but the file itself was not attached.

Is there a step I missed?

Do I need another button with "Attach File".

You can see the form here.
------------

Something strange. In Firefox I see "Browse,"...while in Safari it's "Choose File." Both on a Mac.

Safari (Mac) -- On the incoming e-mail, there was no listing of the attached file or the file itself.

Firefox (PC) -- "Browse" on the button, the file listed in the email, but no attachment shows up.

IE 6 -- Same as for Firefox, with the only exception being that IE actually captured the exact path of the file on the computer the message was sent from. Bizarre.

Like I said, I'm a newbie, just trying to struggle my way through. All help is appreciated.

Thanks.

dmag


P.S. One other good feature would be the ability to send multiple files in the same message. I tried to do that by duping the code on the next line in File Uploads, but only one file listing came through on the e-mail.

Post edited by: dmag, at: 2008/02/10 10:03<br><br>Post edited by: GreyHead, at: 2008/02/10 10:23
GreyHead 10 Feb, 2008
Hi dmag,

I see you fixed the alignment; I don't think that you can change 'Browse...' though (at least I don't know how to do it).

Not sure why the file isn't attaching though . . . have you fixed that?

Bob
dmag 10 Feb, 2008
No. Files still will not attach.

Don't know what to do from here.

dmag
GreyHead 10 Feb, 2008
Hi dmg

The "Browse..." is set by the browser as you've discovered. There's a workaround here if you want to explore.

Multiple files should work OK, you need to give the fields different names though.

Not sure why you are getting different results with different browsers. We've had a few recent threads on File upload problems and I'll be looking at these in the next day or so. First I have a new release by Max (2.3.8 for Joomla 1.0.x) to take a look at.

Bob<br><br>Post edited by: GreyHead, at: 2008/02/10 10:33
Max_admin 10 Feb, 2008
Hi dmag,

Could you please attach a screenshot of the File Uploads tab yours ?

Cheers,

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
dmag 10 Feb, 2008
Hi Max,

Here are both file uploads and the form code.

Thanks.
dmag 10 Feb, 2008
It took the message but not the files.

First, here's the file uploads area, then the form code will follow in the next message. Newbie wants to allow e-mail attachments image 1<br><br>Post edited by: dmag, at: 2008/02/10 14:17
dmag 10 Feb, 2008
formcode... Newbie wants to allow e-mail attachments image 2
dmag 10 Feb, 2008
Max,

Hope something jumps out at you on this. The best case scenario for me is that I can attach files, and attach more than one image file to a single message. Even if was just two jpegs, that would be fine.

Thanks.
Max_admin 10 Feb, 2008
Hi Dmag,

Please remove "=all are ok" this makes a problem!

Cheers,

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
dmag 10 Feb, 2008
Hi Max,

I made a second file upload field with identical properties, and both now show up on the e-mail when it comes through...

but no files are attached.

So that is a little progress.


I took out all = ok. Still will not attach.

I appreciate the continuing help.

What does it look like in form code and file uploads when you are able to attach files?

Thanks. Newbie wants to allow e-mail attachments image 3<br><br>Post edited by: dmag, at: 2008/02/10 14:35
GreyHead 10 Feb, 2008
Hi Dmag,

Are the files in your uploads folder?

Bob
dmag 11 Feb, 2008

Hi Dmag,

Are the files in your uploads folder?

Bob




Hi Bob,

Nope. Under Chronocontact in the Components folder, the uploads folder is empty other than a 44-byte index.html file.

Thanks.
GreyHead 11 Feb, 2008
Hi Dmag,

Well, that explains why they aren't attached to the email! I'll find some extra debug code for you to try tomorrow and we'll see if we can pin down what's happening.

Bob
dmag 11 Feb, 2008

Hi Dmag,

Well, that explains why they aren't attached to the email! I'll find some extra debug code for you to try tomorrow and we'll see if we can pin down what's happening.

Bob






Thanks, Bob. Much appreciated.
Max_admin 11 Feb, 2008
Hi dmag,

Please add enctype="multipart/form-data" to the form tag attachment box and it will attach!

Cheers,

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
dmag 11 Feb, 2008
Hi Max,

Good news and bad news...

The files did attach and were sent to the uploads folder on the server. I had figured they would come through the email. Is that possible?

But here's the bad news...

The first time I did this the e-mail that came through did not have the files listed.

The next two times the e-mail was not received at all.

So, it's a little inconsistent.

But at least we can attach in some way.

Now, if we can get the files into the email instead of to the server, and receive emails with the files listed -- so I can match things up -- then we're good to go.

Thanks.

dmag
Max_admin 11 Feb, 2008
Hi dmag,

Please find $mosconfig_fileperms in yourr configuration.php file and make it 0644 instead of 0000 and this should work fine!

Cheers,

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
dmag 11 Feb, 2008
Hey Max,

Under $mosconfig_fileperms there was no numbers in there, just " ".

I inserted 0644, as you suggested. and...

IT WORKED!

FYI, in case anybody else has this issue, the files are no longer listed next to "Click to attach file 1" or "Click to attach file2" in the e-mail that comes through, but they are attached.

Now, I can match them up to the dscriptions and captions, and all is well.

Brilliant job, Max.

Thanks also to Bob, who hung in there with this for several messages and also gave some good help.

Much appreciated, guys!!!

dmag
This topic is locked and no more replies can be posted.