This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

File Upload Question


  1. grandeland
    Member

    Another file upload question. I've followed the instructions for file upload to actually send the file versus a link to the file. In my PHP.ini safemode is set to "off," and my rights for the users group to the machform folder in htdocs is set to "Full Control." Still it's only sending the link and requires the recipient to login to machform to retrieve the file. I'm on Windows 2003 running the XAMP Stack. Thank you in advance.

    Posted 14 years ago #
  2. yuniar

    Which modification you are referring to? Can you post the URL?
    Also, try to delete the file on your site first, then upload the modified files.


    MachForm Founder

    Posted 14 years ago #
  3. grandeland
    Member

    This is the exact situation I'm dealing with:

    http://www.appnitro.com/forums/topic/using-machform-to-send-attachment-files-in-emails?replies=4#post-7747

    My problem is that I'm on an intranet and the form is being sent to our client via port 25. My questions are if they don't have access to our intranet they can't download the file? If that's the case would the only solution be hosting externally? Or is there a way to send the file instead of the link to the file?

    Posted 14 years ago #
  4. yuniar

    Hmm... I'm not sure what do you mean by sending the form through port 25?
    Do you mean accessing the form using port 25, like this:

    http://www.example.com:25/machform/view.php?id=2

    If your users are able to fill your form, then they should be able to download the file, after applying the above modification.


    MachForm Founder

    Posted 14 years ago #
  5. grandeland
    Member

    We are on an intranet. Our client cannot access our intranet. The machform is on our intranet. Therefore when then email is sent from machform, I need to send the attachment from the file up-load feature. I don't need a link to the attachment I need the actual attachment sent.

    Posted 14 years ago #
  6. yuniar

    Ah.. I see.
    I'm afraid MachForm currently can't send the file as attachment. Sorry.


    MachForm Founder

    Posted 14 years ago #
  7. grandeland
    Member

    I see! Next question. In order to send the attachment I'd need to modify the PHP code and add in multipart/mixed MIME type that specifies that mixed types will be included in the email. What file would I make these modifications?
    Example is at the bottom of this web page:
    http://www.webcheatsheet.com/PHP/send_email_text_html_attachment.php

    Posted 14 years ago #
  8. grandeland
    Member

    Yuniar, Have you seen this link?
    http://www.appnitro.com/forums/topic/sending-email-attachments?replies=7#post-10400

    After you read it when I add this line:
    $mail->AddAttachment('./data/form_'.$form_id.'/files/'.'filename.ext');
    I don't see anything changing in form. Any Ideas?

    Posted 14 years ago #

RSS feed for this topic

Reply