Skip to content

File->upload does not use title from project file (in server backed mode) #4145

@benjiwheeler

Description

@benjiwheeler

This is a holdover from #4123 , which was partially resolved by #4134 .

Expected Behavior

  1. You're logged in, editing your own project
  2. You do file->upload
  3. You see your new project, with a new url! great!
  4. You expect the title to match the filename of your local file

Actual Behavior

Project title is generic: 'Untitled-5'

Discussion

The problem is a bit tricky...

Basically the project-state goes through the states:

loading upload ->
showing without id ->
creating new
It's at that creating new step that we want to set the new title. The problem is that from that point, you can look back one state (using prevprops) easily, but there’s no immediately obvious way in project-saver-hoc to say “oh, we’re creating a new project because of an upload, it’s not a new default project”.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions