Forums

maximum width file

creositi 17 Aug, 2014
I created a form to upload files,
You can enter a maximum width in pixels of the file?
creositi 17 Aug, 2014
I hope it is not a problem to insert three questions in a topic, but all relate to the file upload.

1- I can enter a maximum width in pixels of the file?

2-the user can upload the file only if it is registered. There is way to set that each user can only insert a file and just? (Not a file at a time but only one file)
The user uploads a file and loading is successful. The next time you try to load the file comes out maybe a mistake "YOU CAN ONLY LOAD A FILE" is it possible?

3-I have followed your guide to enter the progressbar but obviously does not work (it will always be because of my little knowledge of English) The tutorial in this page is right for chronoform v4 and joomla 2.5?
GreyHead 18 Aug, 2014
Hi creositi,

1. No, there is no built in check for the image width. Once the image is uploaded you could use PHP to check the width.

2. Yes, you can (a) use the Authenticator action to check that the user is logged in and (b) you can use a DB Read, or Custom PHP to check if they have already uploaded a file. If they have then you can show a message instead of the file upload action.

3. What tutorial are you following - I don't' see one in the FAQs here?

Bob
creositi 18 Aug, 2014
Step 3 ..... solved .... Also because of my lack of knowledge of English. I did not realize that I had to give the SEND button ID input_submit_1
Sorry.

I await your help, if possible, to the point 1 and 2.
Many thanks!
GreyHead 19 Aug, 2014
Hi creositi,

1. I don't know this StackOverflow answer may help.

2.What have you tried so far? Do you have the Authenticator action working OK?

Bob
creositi 19 Aug, 2014
1- Unfortunately no but I think I'll skip the problem. The form is already quite complicated with a redirect to paypal etc. ...
2-Autenticathor I looked, but I need the registered user can upload a single file forever. A single file and nothing else, ever again. I have to practically put a limit on the form. The user uploads a file, ok, can never upload other files.
GreyHead 20 Aug, 2014
Hi creositi,

How do you want to recognise users to know if they have already submitted?

If they will be logging in then the Authenticator action can check that. Then I would use their User ID to see if there is already a file uploaded and an Event Switcher action to either show the File Upload form or a message to say that they have already uploaded a file.

Bob
creositi 20 Aug, 2014
OK,
I simply put the page of the form as visible to registered users in the settings of joomla.
How can I do this part?

Then I would use their User ID to see if there is already a file uploaded and an Event Switcher action to either show the File Upload form or a message to say that they have already uploaded a file.

GreyHead 21 Aug, 2014
Hi creositi,

There are a couple of ways to do it. The simplest is probably to use a DB Save action in the On Submit event to save a record when the form is submitted with an upload. Then use a DB Read action to load a record for that user from the database when the form is loaded - if a record is found then the user has an uploaded file.

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