Assign files Name During Upload

  • bruce@brucedill.com
  • bruce@brucedill.com's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 439
  • Karma: 1
  • Thank you received: 9

bruce@brucedill.com replied the topic: Assign files Name During Upload

Mihaela,
I apologise. "celebratethewinnersorderp" is in the "QuickModeForms" package.

I changed the code to:
{ff_uploads}/{Magazine:value}/{year:value}/{month:value}/{page:value}|{filemask:lastname}_{filemask:firstname}_(filemask:image1)

I used the following information:
magazine = celebratethewinnersorderpyear = 2019
month = 12
page = P
lastname = Dill
firstname = Bruce
image1 = IMAGE_3575.jpg

The record was not saved in the directory

I did check with my site provider "Siteground" and verified the permissions on the folder are correct.
#237832
  • mihaela
  • Away
  • Administrator
  • Administrator
  • Posts: 2652
  • Karma: 92
  • Thank you received: 354

mihaela replied the topic: Assign files Name During Upload

Hello,

I've looked into this and it seems that this won't work due to the capital letter "M" in the "Magazine".

Please change the field's name from "Magazine" to "magazine" and change that in the upload field so that it is set to:
{ff_uploads}/{magazine:value}/{year:value}/{month:value}/{page:value}|{filemask:lastname}_{filemask:firstname}_image1

I've tested this on my example form and it was working properly.

Let me know whether this is working for you.

Regards,

Mihaela
#237833
  • bruce@brucedill.com
  • bruce@brucedill.com's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 439
  • Karma: 1
  • Thank you received: 9

bruce@brucedill.com replied the topic: Assign files Name During Upload

Sorry Mihaela, it isn't working on my end.

The link on the front-end is: researchbreeder.com/dog-owners/celebrate...issue-1-january-2020

Would you login to the front end and check it? I did check and the record is added to the Breezing Form records but the image is not in the file.

Sorry to be causing you problems. I really wanted to get this going by today.

Bruce
#237835
  • mihaela
  • Away
  • Administrator
  • Administrator
  • Posts: 2652
  • Karma: 92
  • Thank you received: 354

mihaela replied the topic: Assign files Name During Upload

Hello,

Can you please tell me where does the file get saved when you save it that way?

From what you have set up it should be in JOOMLA ROOT/media/breezingforms/uploads/magazine/year/month/page/ end have a name:
lastname_firstname_image1.The actual path will be what was entered in the form in fields magazine, year, month, etc.

I've exported your form and imported it to my site and the uploaded file got saved to the right place.

Please check whether you are looking in the JOOMLA ROOT/media/breezingforms/uploads/ folder.

Let me know the result.

Regards,

Mihaela
#237851
  • bruce@brucedill.com
  • bruce@brucedill.com's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 439
  • Karma: 1
  • Thank you received: 9

bruce@brucedill.com replied the topic: Assign files Name During Upload

Mihaela,

I was not aware of the requirement for the directory structure to include "media/breezingforms/uploads/". I went to the directory structure and now I see it is working perfectly.

Thank you!

Bruce
#237860
  • mihaela
  • Away
  • Administrator
  • Administrator
  • Posts: 2652
  • Karma: 92
  • Thank you received: 354

mihaela replied the topic: Assign files Name During Upload

Hello again,

Great! I'm glad that the issue is resolved and that it is now working as you wanted.

Regards,

Mihaela
#237926
Moderators: ForumSupporttomeperica
Time to create page: 0.125 seconds

New Icon Packs Category!

Crosstec is now offering icon packs.

If you are a paying subscriber, icon packs are automatically added to your account.

Check out our icon packs page!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

Summer Sale!

50% discount on all of our extension subscription plans, templates and icon packs!

Get Your Subscription Here

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

All Extensions Subscription

Get 1 year access to all of our current and future products and 1 year of professional support -- 99 for just 49! (Summer Sale)

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, Joomla!® templates for the duration of your membership. This means, by purchasing an All Extensions Subscription you'll have it all covered!

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here