Title: Get input value after form submit
Last modified: March 28, 2017

---

# Get input value after form submit

 *  [AndreiD](https://wordpress.org/support/users/andreiro37/)
 * (@andreiro37)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/get-input-value-after-form-submit/)
 * I have added the shortcode in a custom form.
    After user upload the file and 
   then press Submit on my form, i cannot get the filename of uploaded file.
 * I see at print_r($_POST) only:
    [uploadedfile_1] => demo-profile-image.png
 * And in the uploads/ folder i have the image with timestamp name
    demo-profile-
   image-20170328170127.png
 * How can i get the filename value after press submit?
 * thanks

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [nickboss](https://wordpress.org/support/users/nickboss/)
 * (@nickboss)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/get-input-value-after-form-submit/#post-8968261)
 * Hi, you want to run a custom PHP script with the filename? You can do it by implementing
   wfu_after_file_upload or wfu_after_upload filter. You can see instructions [here](https://www.iptanus.com/filters-and-actions-of-wordpress-file-upload-plugin/).
 * Regards
 * Nickolas
 *  Thread Starter [AndreiD](https://wordpress.org/support/users/andreiro37/)
 * (@andreiro37)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/get-input-value-after-form-submit/#post-8969780)
 * I have a custom edit profile page with a form.
    I have – 1 upload image field–
   1 upload video field and other felds like name, age ..
 * When user click Update i need to get the values of those 2 fields to update them
   in database in custom user meta and is not obvious how to do it.
 * 2 shortcodes for these 2 fields look similar, arent differentiated by an id or
   something. Also, if a use add_filter how i identify between those 2 upload fileds(
   photo and video) to update their values in database for user cystom meta?
 *  Plugin Author [nickboss](https://wordpress.org/support/users/nickboss/)
 * (@nickboss)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/get-input-value-after-form-submit/#post-8974025)
 * Hi, you need to differentiate those two shortcodes by setting different upload
   id. Then when you implement a filter, for instance wfu_after_upload, there is
   a variable that holds the plugin id ($additional_data[“sid”] variable).
 * This is a [link](https://www.iptanus.com/filters-and-actions-of-wordpress-file-upload-plugin/)
   of instructions for the filters.
 * Regards
 * Nickolas
 *  Thread Starter [AndreiD](https://wordpress.org/support/users/andreiro37/)
 * (@andreiro37)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/get-input-value-after-form-submit/#post-8975180)
 * “two shortcodes by setting different upload id”
 * Those 2 shortcodes does nto have ids, should i add id attribute manually in shortcode?
 * I ended creating custom code, but the plugin looks good and maybe i will use 
   it for other projects.
 *  Plugin Author [nickboss](https://wordpress.org/support/users/nickboss/)
 * (@nickboss)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/get-input-value-after-form-submit/#post-8981927)
 * you can add uploadid=”1″ is the first shortcode and uploadid=”2″ in the second,
   or you can do it visually using the [visual editor](https://www.iptanus.com/how-to-use-the-visual-editor-of-wordpress-file-upload-plugin/)(
   it is the first option)
 * Nickolas

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Get input value after form submit’ is closed to new replies.

 * ![](https://ps.w.org/wp-file-upload/assets/icon-256x256.png?rev=3252590)
 * [Iptanus File Upload](https://wordpress.org/plugins/wp-file-upload/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-file-upload/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-file-upload/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-file-upload/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-file-upload/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-file-upload/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [nickboss](https://wordpress.org/support/users/nickboss/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/get-input-value-after-form-submit/#post-8981927)
 * Status: not resolved