Questions tagged [file-upload]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
7
votes
6answers
1k views

What is the best place to store downloadable PDF invoices?

My component will produce invoices in PDF format that will be available for customers to download. Where is the best place to store these files? /adminitrator/componentes/com_mycomponent/invoices /...
5
votes
3answers
1k views

Folder create when user register joomla website?

In my Joomla site my users can upload and download files (docs and pdfs). So I want to create a separate folder for each and every user in my server. When a user register on my website a folder is ...
4
votes
2answers
6k views

How to create a simple image uploader for custom component

I'm developing a custom component for creating, editing and saving data of single records including images. I know that in admin/models/forms/record.xml there must be field name="image" type="file" ...
4
votes
1answer
606 views

File selector in the front-end of a specific directory

I am developing a component which has a front-end form. In this form it must be possible to select and upload a File to a user-specific directory. I found and tested the module Easy File Uploader ...
4
votes
1answer
760 views

Custom Component - JInput Isn't Getting the Form Input

I have an input form in the admin view: <form name="upload" method="post" enctype="multipart/form-data"> <input type="file" name="file_upload" /> <input type="submit" value="...
4
votes
1answer
1k views

File password extra protection

We have a site which is used for files being uploaded and downloaded. For added security we want to have it on set files when you click the link to download it you'll be requested a password, this ...
3
votes
4answers
966 views

Ajax error when attempting component updates

I am having a couple of issues with a Joomla 3.6 site that I maintain. Issue 1 is with the Joomla update component. When the update attempts to run it gets an Ajax alert error, and the following ...
3
votes
2answers
3k views

Warning: Failed to move file! Error Unable to upload file

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpNvO1BD' to '/home/kimberly/public_html/tmp/IMG_1934.JPG' in /home/kimberly/public_html/libraries/joomla/...
3
votes
2answers
190 views

Why does Joomla change the file permissions on installation of plugins?

I have the following problem: I have a apache server running under the user http:http. Further the php scripts are evaluated through fastcgi and php-fpm. The php scripts are running under the user foo:...
3
votes
4answers
986 views

Joomla custom fields type url file - upload?

I am trying to add a simple file upload field type to the com_contact using Joomla's custom fields. I see there is a 'URL scheme File' type but I couldn't figure out how to get that to work as a file ...
3
votes
2answers
1k views

How to save image in specified folder in joomla directory and save file name in db

I am working on a custom component, where at the backend interface - we want the admin user to be able to upload image and let that image directly save to a specified folder - /images/uploads/variants/...
3
votes
1answer
983 views

Joomla 3.4 Development File Handling

I am making a basic MVC component, mostly following the HelloWorld tutorial. I made a form which contains a upload button and an input of type "file". The form loads fine, but when I upload a file I ...
2
votes
1answer
565 views

Bulk insert records in database from excel

I am developing a component from which user can upload excel sheet and the data must be saved into database. When excel sheet rows are 250 then insertion works fine but when the rows are 2500 or more ...
2
votes
1answer
878 views

Cannot enable 'Install from web' and cannot upload extension manually

I have just setup a joomla 3 site on demojoomla.com. I have managed to upload a template but I have not been able to upload any extensions (JCE or Akeeba). When I try to enable Install fromm web I ...
2
votes
2answers
657 views

Upload code files to Joomla site

We are trying to add Python code files to our Joomla site. We are using the JCE editor plugin, which does not seem to allow this (we've been trying different combinations wrt. the JCE settings). Has ...
2
votes
1answer
90 views

Select flash in com_banners

I have problem with flash files in com_banners. When I select "image", I can upload flash file but I can't choose flash because it's not on the list. I can put manualy path but it's not good idea for ...
2
votes
1answer
999 views

Localhost configuration problem- loading extensions "There was an error uploading this file to the server."

Running ubuntu 14.04 Joomla 2.5.27 locally (2.5.28 remotely - not relevant to my question as far as I'm aware.) I am having trouble configuring my site to run locally. I have the site installed on my ...
2
votes
2answers
251 views

Cannot upload extensions manually

I keep getting errors when trying to upload to my tmp directory, it always fails if I try by URL or upload. The only way it works is via a direct upload Joomla extension. As I have root access I have ...
1
vote
1answer
438 views

file upload in admin backend - custom component

In my custom component/admin, in the item edit template I am trying to let the user upload a file. The problem is that the file is not being passed in my save function. There is not even in the array ...
1
vote
2answers
614 views

how to rename file on upload custom component joomla 3

I recently create a custom component with Component Creator, and I have a form in admin area that uploads file... But I can't upload files with same name it's going to replace the previous file, now ...
1
vote
1answer
105 views

Mulitple column insert

I have multiple custom file inputs in my module , id like to save all this inputs in my database table ("Custom table , not the Joomla tables") , below is my code , which saves only 1 input , there ...
1
vote
1answer
126 views

How adjust "Maximum upload size" indicator for file upload?

Joomla prints a short notice regarding the Maximum upload size when including a file upload field with the standard form field file, see code and image below: <field name="image" ...
1
vote
1answer
63 views

Uploading file using Form class in admin template control panel

I'd like to include an XML form field in my template that allows the user to upload an image file for the company logo. I know how to do this for a regular component's administrator control panel, but ...
1
vote
1answer
302 views

Front-end custom Joomla module to upload an image and save it in the Joomla images folder

I work on a custom Joomla module that would let users to upload profile images. I created a JForm and wanted to use the form field type "file" as below: <field name="Photo" type="file" label="...
1
vote
1answer
41 views

Upload and download Joomla

I need to create a knowledge bank portal where user with permission can upload and also download the document such pdf,docx. The other user such as public can use search to search document and ...
1
vote
1answer
173 views

JFile::makeSafe does not convert file name

I need to rename and save a file upload when saving an item in a custom component. The problem is that the JFile::makeSafe function seems like is not converting the filename as you can see below. So ...
1
vote
1answer
74 views

validate file type in joomla or core php

In joomla or core php when we upload any file it validate only extension on file. Issue is that when i am changed the extension of an .exe file to pdf/jpg it gets uploaded. And validation failed. Can ...
1
vote
1answer
34 views

Big Sized files download links for frontend users component

Is there any component which allows large files management. I would like to provide download links for frontend users but but the file size excedes 500MB. On the other side just the logged in users ...
1
vote
2answers
1k views

Gateway Timeout : 504 Error

I am facing an issue with uploading an excel data sheet. The functionality is like User uploads an excel sheet Records are inserted into that custom component's tables by which graphs are shown in ...
1
vote
2answers
2k views

Free file attachment to editor (alternative of JCE file manager plugin)

As you know, JCE file manager is not free. So, I am after a free plugin or component that can attach files (pdf,doc,zip, ...) to an article, but it must provide easy access from editor, like file ...
1
vote
2answers
1k views

Cannot upload attachment to K2 items using FTP

I am using K2 for content managing. In order to upload files I had to set /media/k2 directory's and its subdirectories' to 775. So, of course the web site has been damaged because of www-data group ...
1
vote
0answers
21 views

Upload and attachement for phpmailer

hello i starting an code to allow sending file via a form i create an input file field <input type="file" name="'.$field_name.'[]" accept="'.$values_field[0].'" id="'.$field_id.'" '.$placeholder.' ...
1
vote
0answers
26 views

How to set default permissions of files uploaded through Joomla Media Manager?

I'm running Joomla(3.9.8) on an Apache/PHP server on Linux. If you touch a file as the server user (and from PHP running on the server), the permissions of that file are: -rw-rw-r--. However, if a ...
1
vote
0answers
62 views

How to extend / override the JFile class?

I want to extend/override the JFile class without hacking Joomla files. How do I even begin to extend the class using best practices?
1
vote
0answers
269 views

How to upload an image using Ajax?

I need to upload an image to the server via AJAX, but the server comes back to the page with request, although server doesn't send anything. ajax: function uploadServer($el) { var fileUpload = $...
1
vote
1answer
1k views

**Warning: Failed to move file!** **Error** **Unable to upload file.**

The error raises whenever I try to upload a file (image) via backend clicking the image button in the tinymce editor. I've also tried to upload going to media manager and it fails and this is the ...
1
vote
3answers
647 views

Upload a file from custom component folder when installing the component

I know how to upload file given from jform if a component is already installed. But how to upload a file from my admin/assets/ folder of my component when installing the component? In my script.php I ...
0
votes
2answers
2k views

Multiple File Upload Using JInput?

FORM HTML : <form name="upload" method="post" action="send.php" enctype="multipart/form-data"> File #1 : <input type="file" name="one" /> File #2 : <input type="file" name="two" /> ...
0
votes
1answer
44 views

Photo size validation

I use the Fox Contact component on my website, and through that component users send me photos (as an attachment) I had to make a few modifications in the upload form itself and make filters for file ...
0
votes
4answers
420 views

Edit HTML-Code of specific Joomla Page

I am a Joomla Beginner and would like to know, how I can edit the HTML-Code of a specific webpage in Joomla. I am not talking about editing an article, but the whole URL. And just a single one! Is ...
0
votes
1answer
307 views

How to add attribute to <form> of backend for module

How can I add the attribute enctype="multipart/form-data" to the <form> tag in the configuration page for a module? That attribute is needed to upload a file to the server. I am trying to ...
0
votes
1answer
64 views

Listening for a "image upload" event

I want to be able to programatically keep track of new images that have been added, so that I can periodically run a script that does something with the new images. My idea is to have a plugin that ...
0
votes
1answer
1k views

Is it possible to upload file using Joomla Ajax Interface (com_ajax)

I am using com_ajax in a module. I have a form with text inputs which I can pass through to the method and store to database but I am struggling to upload a file. Code that works fine for text inputs ...
0
votes
1answer
208 views

Thumbnail image is not transferred into another folder

I create a form which contain one image-array(name="image[]",type="file") to upload multiple images.And when user click on save button image is save in destination folder and with that thumbnail is ...
0
votes
0answers
11 views

Upload multiple files and assign one per user

I have to make a site page where the logged user can download a personal file, i've tried phocadownload plugin and it allows me to do such, but you must do that by assigning users to files one by one. ...
0
votes
0answers
11 views

Capture multiple images using camera in file upload field in RSForm Pro

I want to capture multiple images using camera in file upload field in RSForm Pro. Currently, it won't allow me to capture multiple images in the single field. Please see the file upload field, in ...
0
votes
0answers
23 views

Whitespace characters in image filenames are not working

My Joomla version is 3.7.2 and my problem is that category images do not render when the filename contains whitespace characters. For example, an image name like: Atlas Vandal Resistant category ...
0
votes
1answer
125 views

Admin Component File Upload -> Cannot Get JInput to work

I am struggling to get an admin form file upload to work using JInput. I have tried pretty much every permutation of $input->files->get(''); I can think of with no luck. No matter what I do, it ...
0
votes
0answers
163 views

Upload form to upload files and filter the public view based on category

I am looking for an extension or a way to allow users to upload their documents based on the category e.g. a User will upload food recipe document (pdf/doc) in the category of "Chinese" or "Maxican"....