Questions tagged [files]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers
31 views

Uploading file from Drupal webform to Civi file field

Using Drupal 9 webform to upload a file and attach to Civi contact. (This has worked well for D7 and Civi.) D9 will not render the file upload element unless there is a private folder in Drupal. ...
Dave T's user avatar
  • 1,229
0 votes
2 answers
38 views

Get uploaded file full URL via API v4

CiviCRM: v5.57.3 (Currently waiting for a 3rd Party plugin to be updated to be compatible with the latest version.) WordPress: v6.2.2 We have a custom field attached to CiviEvents that lets the team ...
Michael Bragg's user avatar
1 vote
1 answer
23 views

what is the format or encoding of files in the content property when creating an attachment entity in civicrm API V3

I tried many things like base 64 or just using the php function file_get_contents but when i check the civicrm UI and click on the attachment it doesn't work (for images for example it says ...
abdeslam chettout's user avatar
0 votes
1 answer
33 views

Custom field FILE type location

I have created a custom field of the FILE type. When I attach a file, the file is stored on the server in this location: /my/server/public_html/wp-content/uploads/civicrm/custom Now this does have an ....
jsherk's user avatar
  • 521
0 votes
0 answers
23 views

Best methods for filesharing with Civi, not using file upload fields

I'm trying to find a way to share documents in an organisation without using the file upload field as part of custom data on a contact/ case record. Could a link field handle a link to a shared server/...
Craig Almond's user avatar
  • 2,037
1 vote
1 answer
69 views

Custom File field in custom group used by CiviCRM entity group not saving

I attached a new custom group to entity type group and added a field of type file. When editing the group settings and fill in a file, it is posted without errors and notification bubble confirms ...
nielo's user avatar
  • 1,294
0 votes
1 answer
43 views

Write a file, after them redirect

Sorry for the newbie question... I modified CRM_Contact_Form_Task_Label class, to create my own Task. It creates necessary data for printing membership cards. If a contact has all necessary data, then ...
Pál Rudan's user avatar
0 votes
0 answers
28 views

How to save a file in civicrm file table?

I planning to save the user submitted file in the civicrm file table. I have tried these code to get the submitted file name, but it doesn't work function postprocess(){ $file = $this->...
safron's user avatar
  • 89
0 votes
0 answers
34 views

Deleting the Upload Folder at Specific Times

When we create an activity, we sometimes add files to these activities. The added files are mostly jpg, png or pdf files. However, these files have a single use. In other words, I do not need to keep ...
Fatih ATEŞ's user avatar
3 votes
4 answers
95 views

Private content for event participant?

My scenario is quite simple to explain : When a person register on an event (paid or free), we would like to give him an direct access to private content (by email or by direct redirect) (like ...
empiguet's user avatar
  • 158
1 vote
1 answer
57 views

How do I identify the right .php page

Trying to modify the template and translate some hard coded Strings on Drupal 7, I couldn't really easily find the architecture of a page. With the debug mode I can read in the code which .tpl is ...
Guillaume Sorel's user avatar
1 vote
0 answers
30 views

How to generate thumbnails of PDFs for files uploaded to civicrm file fields

Title says it. There are a number of Drupal modules which take care of this if the field is on a drupal entity but we are using civicrm fields (via a webform but pretty sure that is beside the point) ...
petednz - fuzion's user avatar
  • 28.1k
2 votes
3 answers
290 views

How to attach a File to a Contact?

One can attach a file to an Activity, but is it possible to attach a file to a Contact ? How ? Then, if the file is an image (jpg or png, ...) how to display it ? (I am using CiviCRM/Drupal + ...
Jacques-Marie Moranne's user avatar
1 vote
2 answers
209 views

Private Files Readable

How can I fix this error on CiviCRM. Thanks.
santiagoelie's user avatar
0 votes
1 answer
171 views

How to Modify CiviCRM settings file

How can I modify the CiviCRM settings file so that the CiviCRM extension directory is set using settings files variables. Thanks!
santiagoelie's user avatar
3 votes
1 answer
46 views

Restoring uploaded file records

WE had some sort of corruption on our CiviCRM db and somehow lost data in different fields One of these was a custom field containing uploaded files THese files are still listed in the civicrm_file ...
Pancharatna dasa's user avatar
1 vote
0 answers
57 views

Images uploaded as custom fields are broken on view/download

I'm using Drupal with CiviCRM 4.7.30 (but this issue also affected 4.6) on Nginx & Debian I have a custom field used for images. Images are uploaded and stored correctly (when copying the image ...
Leckie's user avatar
  • 53
5 votes
1 answer
353 views

Upload a contact image via the API

Can someone give me a simple example of how to upload a Contact image via the API? I am guessing it will involve a call to the File API as well but not sure. I have the original image as a URL but ...
michaelmcandrew's user avatar
3 votes
1 answer
112 views

Cleaning up images (or other files) in the custom folder

I'm wondering if anyone else has come up with a good way to manage their custom files (where documents and images which are attachments to contact records are stored.) We have a fair amount of files ...
RayWright's user avatar
  • 2,488
2 votes
0 answers
115 views

File Upload / Insert Image crashes browser

Running the latest version 4.7.29 on Wordpress 4.9.2. Using either CKEditor or TinyMCE if I attempt to "browse" the server for an image it locks up the tab and has to be killed. I use DUO Security ...
JabawokJayUK's user avatar
4 votes
2 answers
99 views

How are folk storing lots of Files on Cases?

I know there are File fields on Activities, and we can add File Fields to the case itself. But say there are 20 documents to add over time. while googling I found this which sounds interesting ...
petednz - fuzion's user avatar
  • 28.1k
3 votes
1 answer
214 views

How to create a custom field for a file upload, and make it private

We would like to create a custom field in CiviCRM for a file upload, and link it to the CiviCRM Webforms Integration module while at the same time keeping it "private" and is not publicly accessible. ...
wrender's user avatar
  • 95
3 votes
1 answer
154 views

Where is CiviCRM installed?

I have CiviCRM installed on my web site, and some answers on Stack Exchange tell me to change a file in CiviCRM, or to find my "civicrmroot". I know how to access the files on my server, using FTP or ...
Jon G - Megaphone Tech's user avatar
3 votes
2 answers
99 views

How can I get custom file fields in an activity to display correctly?

I have a Civi implementation that uses a custom activity type in which I have - amongst others - four custom fields of the field type "File". These custom fields work fine in all but one situation. ...
Graham's user avatar
  • 3,935
2 votes
1 answer
58 views

How to upload multiple files to be downloaded by contacts in frontend

I'm running CiviCRM 4.7.7. on Joomla for a Sport Club in which athletes have access to his licences, anual documents, reglaments, etc. from frontend. In configuration we have added some custom fields ...
user2851282's user avatar
3 votes
2 answers
578 views

Uploading files through the API

I see an older thread on the forum about potential improvements to the API to allow file uploads, but I'm not sure that ever happened. Has anyone ever uploaded files in CiviCRM using the API? I see ...
Laryn's user avatar
  • 8,241
7 votes
2 answers
466 views

File Storage on CiviCRM

We have a client who is looking to upload about 5G per year of files onto client records in CiviCRM. We can obviously arrange for the server to manage that, but wondered if anyone has ever notice ...
Heather O.'s user avatar
  • 1,378