onBeforeSaveField() question

More
14 years 5 months ago #8256 by orchid1
has anybody used on onBeforeSaveField() before and uploaded a file? I am creating a new field but I'm not sure how to access the $_FILE variables so that i can manipulate them. I've looked at the stock Image plug-in field but have not managed to reverse engineer the code and I've spent 5-6 hours already.
Anyone have any experience with this?

here's an image of what i am trying to do



As you can see I have created a file field and I know I should use the onBeforeSaveField() but I'm not sure what variable holds the uploaded files information or how to set it up.
can some one show me the proper way to mark up the field? and explain to me how to access the I'd be very appreciative for any help
Cheers

“Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction and skillful execution; it represents the wise choice of many alternatives.” William A. Foster - USMC

Please Log in or Create an account to join the conversation.

More
14 years 4 months ago #9572 by orchid1
i think I have this working now

“Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction and skillful execution; it represents the wise choice of many alternatives.” William A. Foster - USMC

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.331 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline