issue with adding upload field to mautic form - mautic

I need to add a file upload custom type to my mautic form but I can't find the right way to do it.
Is there a plugin to add or I must work with symfony to add it
Any suggestions please !

The closest thing to the file upload field feature is this PR: https://github.com/mautic/mautic/pull/3054
If you need it and you know PHP a little, you could help the author to finish it.
UPDATE: Form file upload was finished in PR https://github.com/mautic/mautic/pull/5082 and released in Mautic 2.11.0.

Related

Grails 3 web interface with zip upload via form to a folder on the server

I'm trying to create a Grails 3 web interface with an upload form that writes zip files to a folder on the server.
I have already tried a lot of plugins or solutions that can be found here but nothing seems to work.
My code can be found on github (https://github.com/rm93/BIGC).
Would anyone know a solution that I could apply?
I have found a solution to my problem. Instead to give a path to the transferTo method i now I give it a new file.
fileUpload.transferTo(new File("/path/to/folder/data.zip"))

Embed PDF in a website, allow user to modify editable fields in PDF, and save back to the server

I am writing a Program in Rub On Rails 4.x and I have to take PDF files with defined fields that can be filled out, fill in data from a form submission(This part is DONE!), and lastly allow the user to modify the saved PDF file on the server and overwrite said PDF after making their modifications.
Like I said I have already gotten the PDF files filled out with what has been submitted in the form through pdftk . What I now need to do is provide a server side editing capability to the said PDF files on server generated from the first step of the process.
I have seen similar posts but none wanting to do the same thing I do. If I am wrong links would be great. Thanks in advance for all your help!
After lots of digging and research here is what I have found to be the facts surrounding this issue and implementing a program to allow embedding the PDF file, editing it, and saving it back to the server. This process would be great however from what I can tell there is nothing out there that really does this for Ruby On Rails. To quote #Nick Veys
Seems like you need to find a Javascript PDF editor you can load your PDF into, allow the user to modify it, and ultimately submit it back to the server. Seems like they exist, here's one for ASP projects
You are correct but still wrong in the sense that yes there is one for ASP projects however that is Microsoft Based, yes I know that it can run on Linux environments through Mono. However to the point it would appear in this instance that a Ruby On Rails specific solution is indeed needed.
The solution that we have come up with is as follows
1. Use a PDF editing package in the linux repositories like PDFtk
2. You then render a page with the PDF embeded on one side and a form representing the live fields in the PDF to take input.
3. Once submitted you use PDFtk to write the values into a new template PDF file and overwrite what was previously stored.
This requires a few additional steps to process the data than I really care for myself. However it is the best solution that our team could come up with, without bleeding the project budget dry for just 1 piece of functionality.
I hope this helps anyone else looking to do the same thing in Ruby On Rails.
I have done something like this using my company's .NET product. It can also be done using its Java version too.
http://www.gnostice.com/nl_article.asp?id=255&t=Save_Form_Submit_Data_Back_To_Original_PDF_Document_In_NET

Contour Attachments not being sent

This is my first go-round with Contour and I really like it! I am stuck on one thing and hoping someone out there has some insight.
I have a simple 4 field form, nothing required, no rules...one of the fields is a file upload field. It renders and works correctly on the form, but when I recieve the email with the form values, it does not include a link to the file, or a file attachment. The attachment is also not shown in the "Entries" tab. I tried installing Contrib which seems to have more support for attachments, but I still did not get any mention of the uploaded file in my email.
I am wondering if there is anything I have to do in the config, or similar to allow sending attachments.
I am running Umbraco v6.0.6 and Contour 3.0.14, Contrib is currently uninstalled. I am adding the Razor Macro the page, not the UserControl.
Thanks
Going to answer my own question here in case someone else runs up against this.
Out of desperation I decided to just start trying anything I could think of, so I tried adding the Contour form to my page as a UserControl (despite what I had read) instead of as a Macro, when I did that, I started receiving the attachment link text in my email so I re-installed Contrib and boom, attachments are on the email now.
SO, in summary, you need Contour (obviously), need the Contour Contrib package, and you need to add the macro as a user control and not as razor in order to send attachments

restrict .bmp, .exe, .bat attachment types while uploading for an issue in JIRA

Is there anyway to restrict the attachments of types - .bat/.exe/.bmp, etc to be restricted while user trying to upload them in JIRA.
I tried using the Servlet-Filter plugin module in JIRA. But I am not able to get the URL at the time of uploading the attachment. Also I am trying to listen to the Attachment event for an issue.
Is there any other alternative of restricting these file types.
Any help will be much appreciated.
Thanks!
Well there was an Attachment Filter available but I am not sure if it is still relevant - it actually seems that it is no longer relevant also if I recall correctly it was for
Confluence. So you're left with writing a custom plugin for this.
You could implement com.atlassian.jira.issue.AttachmentManager, the default implementation is com.atlassian.jira.issue.managers.DefaultAttachmentManager and wrap it so that you check what's going on with the upload - filetype etc. But be sure to check the mime-type - not only the file name and/or extension. Check this out.

Attachments with article in joomla 1.6

I'm using joomla 1.6 to develop a website also i'm beginner to joomla. I need to attach one or more pdf files with the article. Any one can please help me to attach file with article and how to get this attachment in frontend. Please help any one how to do that. I tried with phoco download and attachments plugin. But i don't
One way to do this is to log into administration and edit your article in Content Items Manager. With the editor you can insert a link. When you do, click on Shared Documents and then upload the pdf you want to attach.
In your article, you need to use your insert/edit link, in the Link URL section enter the full link of where the pdf is found e.g. www.yourdomainname/images/myfile.pdf. It is always advised to open the pdf in a new window so you can set that in the insert/edit link. Hope this helps.

Resources