/    Sign up×
Community /Pin to ProfileBookmark

File Upload and Source File Path

Hi! all

When we use file uploading via a form, then we can get the file name of the uploaded file (at the PHP script) easily.

But I want to get the full path of the source file of client PC. It can further explained as follows.

There are 3 files.

  • 1. form.php : Contains HTML forms including File Upload Controls

  • 2. Verify.php : here users are given a chance to verify again their input submitted at form.php

  • 3. operation.php : If verified at verify.php normal data goes to DB, uploaded files should be moved to separate folder.
  • Now problem comes with verify.php with file uploads. With it I want show inputs again for verification. ?

    As I understand when user select a file from his system, the path for the relavent file is accompanied into file upload control, not the actual file. When Only forms is submitted file comes in to paly… I’m not sure but I think so.

    [B]So, if the path is accompanied with file upload control, and if we can get it it as a separate variable in the verify.php we can put a file upload control with readymade path. If user see it as he was mistakenly uploaded a incorrect file then he can correct it at verify.php. I don’t whether that is possible or not,[/B]
    [B]If not possible, is there a way to get the source path of the file at client pc, so then we can show the path and say, “If wrong file Go <<Back>> and Upload correct one”. I think that is a feasible alternative.[/B]

    The verify.php is a dummy of form.php which contains all inputs given at form.php in at appropriate form control

    If there is a possible way or alternative, could someone please let me know…

    Thanks and Best Regards

    to post a comment
    PHP

    0Be the first to comment 😎

    ×

    Success!

    Help @GUIR spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.28,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...