• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Create custom upload paths per user submission

Create custom upload paths per user submission 9 years 7 months ago #32584

  • mmurphy1
  • mmurphy1's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
So I got my form built. I am creating articles that are published but I have an issue. I am using a gallery software and need to upload images into a custom directory per article.

e.g. right now images are all being uploaded into /images/models/ I create an article that has {gallery}images/models/{/gallery} and it displays all the images (as it should) what I need to do is make it so files are uploaded into /images/models/$username and the rest into /images/models/@username/gallery

How can the upload file create 2 directories?

Is there any documents on how to do this?
The administrator has disabled public write access.

Create custom upload paths per user submission 9 years 7 months ago #32585

  • mmurphy1
  • mmurphy1's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
Im thinking under properties is a PHP Scripts area and on $_POST I want to add this:

bool mkdir ( string $path/${username:value}/gallery [, int $mode = 0655 [, bool $recursive = false [, resource $context ]]] )
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!