Hello Max, or Bob or whoever can help....
I'm migrating the site from Chronoforms V4 to V7
I'm using the previous forms and adapting what is absolutely needed. Bear in mind that the forms are all custom and I've not used th normal WYSIWYG facility.
I've problem in uploading files.
In the form settings I've provided the absolute path to the directory I wish to save the files to.
in the actions I've added the Upload but I've problems in setting this properly.
whatever I set in the Upload Directory Path of the form I get always: Destination directory not available.
I've tried for instance: {path:front}/uploads/FullProfileNew which is a directory that I've created but does not work either.
Also, for the File name provider, I've set something {data:image} which is the ghost name of the uploaded file.
What am I doing wrong?
C7 seems to be powerful for people that wish to create forms but is less flexible that the previous version, where I could do a lot of twist ;-(
thanks in advance for your help.
Kind regards
Raffaele
I'm migrating the site from Chronoforms V4 to V7
I'm using the previous forms and adapting what is absolutely needed. Bear in mind that the forms are all custom and I've not used th normal WYSIWYG facility.
I've problem in uploading files.
In the form settings I've provided the absolute path to the directory I wish to save the files to.
in the actions I've added the Upload but I've problems in setting this properly.
whatever I set in the Upload Directory Path of the form I get always: Destination directory not available.
I've tried for instance: {path:front}/uploads/FullProfileNew which is a directory that I've created but does not work either.
Also, for the File name provider, I've set something {data:image} which is the ghost name of the uploaded file.
What am I doing wrong?
C7 seems to be powerful for people that wish to create forms but is less flexible that the previous version, where I could do a lot of twist ;-(
thanks in advance for your help.
Kind regards
Raffaele
Enable the debug under the form settings and that should show you if the upload is processed or not or if there are any errors.
another solution is to try to use v8 which can be installed with v7 on the same website
another solution is to try to use v8 which can be installed with v7 on the same website
Hello Max,
thanks for your reply.
I did some testing....
below the code:
I've 2 upload one after the other. The one called "file_7", created through the standard fields uploads correctly. The second called "image" does not work, and if I activate the Debug, image is not even shown as a variable.
To me the code seems the same, except of course the fact that my code is encapsulated in the in the custom HTML tag.
What am I doing wrong?
Thanks for your help
Kind regards
Raffaele
thanks for your reply.
I did some testing....
below the code:
<div class="mainfield field" data-vtype="file" data-uid="7" data-isinput="1"><label for="file_7">File 7</label>
<div class="ui right labeled button fluid large vinput quti w-100">
<div class="ui icon button">
<svg class="fasvg icon upload" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M296 384h-80c-13.3 0-24-10.7-24-24V192h-87.7c-17.8 0-26.7-21.5-14.1-34.1L242.3 5.7c7.5-7.5 19.8-7.5 27.3 0l152.2 152.2c12.6 12.6 3.7 34.1-14.1 34.1H320v168c0 13.3-10.7 24-24 24zm216-8v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h136v8c0 30.9 25.1 56 56 56h80c30.9 0 56-25.1 56-56v-8h136c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"></path></svg>
</div>
<div class="ui basic label fluid vfilename quti w-100" data-text="No file(s) selected">
No file(s) selected
</div>
</div>
<input name="file_7" accept=".jpg,.jpeg,.png,.gif,.pdf,.txt" id="file_7" class="hidden vfile" type="file"></div><div data-vtype="html_code" data-uid="5"><div class="mainfield field" data-vtype="file" data-uid="6" data-isinput="1"><label for="image">Upload Picture</label>
<div class="ui right labeled button fluid large vinput quti w-100">
<div class="ui icon button">
<svg class="fasvg icon upload" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M296 384h-80c-13.3 0-24-10.7-24-24V192h-87.7c-17.8 0-26.7-21.5-14.1-34.1L242.3 5.7c7.5-7.5 19.8-7.5 27.3 0l152.2 152.2c12.6 12.6 3.7 34.1-14.1 34.1H320v168c0 13.3-10.7 24-24 24zm216-8v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h136v8c0 30.9 25.1 56 56 56h80c30.9 0 56-25.1 56-56v-8h136c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"></path></svg>
</div>
<div class="ui basic label fluid vfilename quti w-100" data-text="No file(s) selected">
No file(s) selected
</div>
</div>
<input name="image" accept=".jpg,.jpeg,.png,.gif,.pdf,.txt" id="image" class="hidden vfile" type="file"></div>
<div class="mainfield field" data-vtype="text" data-isinput="1" style=" width: 100%; ">
<input type="submit" name="submit" id="button1" class="btn btn-large btn-gradient btn-rounded mt-4" value="Upload" fdprocessedid="2vz8im">
</div>
</div>
I've 2 upload one after the other. The one called "file_7", created through the standard fields uploads correctly. The second called "image" does not work, and if I activate the Debug, image is not even shown as a variable.
To me the code seems the same, except of course the fact that my code is encapsulated in the in the custom HTML tag.
What am I doing wrong?
Thanks for your help
Kind regards
Raffaele
The "debug" info is where the info will be shown, but you posted the HTML
Below is what is shown in thr debug. As you can see the variable "image" is not shown despite I tried to upload the same file on both inputs.... while only the "file_7" is the one that actually uploaded ...
Array
(
[pages] => Array
(
[requested] => 2
[default] => 1
[this] => 2
[accepted] => Array
(
[1] => true
[2] => true
)
[tokens] => Array
(
[1] => b7071a1d-236f-4920-9b48-e3052666138c
[2] => 537903e1-4e2d-4db0-a7d2-bae1390eb349
)
[chain] => Array
(
[1] => 2
)
[active] => 2
)
[__lastsave] => 1696365239
[_data] => Array
(
[2] => Array
(
[option] => com_chronoforms7
[cont] => manager
[chronoform] => testupload
[gpage] => end_page
[submit] => Upload
)
[1] => Array
(
[option] => com_chronoforms7
[cont] => manager
[chronoform] => testupload
[gpage] => end_page
)
)
[_vars] => Array
(
[2] => Array
(
[end_page_upload] => Array
(
[file_7] => Array
(
[path] => /home/raffaele2/stages.hightechpartners.net/web/components/com_chronoforms7/chronoforms/uploads/FullProfileNew/20231003203359_augusto-coriglioni-sq.jpg
[filename] => 20231003203359_augusto-coriglioni-sq.jpg
[name] => Augusto_Coriglioni_sq.jpg
[size] => 135574
[url] => https://stages.hightechpartners.net/load&dtask=download&file=20231003203359_augusto-coriglioni-sq.jpg
)
)
[end_page_validation] => true
[upload_6] => false
)
)
[_invalid] => Array
(
)
[_clear] => 2
)
image is not processed because it's a custom html file input and does not have the upload behavior, so you need to add a "File upload" action and configure it to upload this file field.
Hi Max,
yes I kno wthat - I've been using CF since the version 3! -
I've configured the action in the end-page.
May be I didn't provide the right data source? I'm using {data:image} and I've allowed the extension of the file normally used....
Regards
Raffaele
below the print screen
yes I kno wthat - I've been using CF since the version 3! -
I've configured the action in the end-page.
May be I didn't provide the right data source? I'm using {data:image} and I've allowed the extension of the file normally used....
Regards
Raffaele
below the print screen

Hello Max,
I'm not sure You've seen my last update. Can you please look at the screenshot and let me know what is wrong? I'm stuck....
Thanks
Raffaele
I'm not sure You've seen my last update. Can you please look at the screenshot and let me know what is wrong? I'm stuck....
Thanks
Raffaele
please leave the "file name provider" empty
You need to login to be able to post a reply.